Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 27th, 2003, 06:09 AM
levonau levonau is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: South Australia, Australia
Posts: 7 levonau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Recall cell value in Excel into textbox.

This may seem basic but I'm stuck!

I have an applet with a textbox and a button called update.
When you type in the textbox and click update, it puts the value typed in the textbox in nominated cell in Excel.
When I recall the applet the textbox is empty and when you click update it obviously clears the cell.

What I want to happen is for the textbox to show the value in the cell when i recall the applet.

Reply With Quote
  #2  
Old December 1st, 2003, 11:23 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,982 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 18 h 42 m 27 sec
Reputation Power: 814
Post some code. What do you mean by applet?

Reply With Quote
  #3  
Old December 1st, 2003, 04:22 PM
levonau levonau is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: South Australia, Australia
Posts: 7 levonau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry I thought It was a bit unclear.

I have a window with two text boxes (firstname_1) & (Surname_1) and a button 'update'.
This window is opened from Excel via a button. That part is easy.
When the window is shown you insert the frist and last name in the text boxes and click update. The button is as below..

Private Sub UPDATE_Button_Click()
Sheets("Summary").Activate

Range("r8").Select
ActiveCell = FirstName_1.Text
Range("s8").Select
ActiveCell = Surname_1.Text
end sub


Easy..

Then when i want to edit the text and open the window.. the boxes are empty. I do not know how to have the boxes show the cell values upon opening.
I am currently using a button comand next to update, shown below..

Private Sub GetNames1_Click()

FirstName_1.Value = Range("R8").Value
Surname_1.Value = Range("s8").Value
end sub

How do I make to window recall the information upon opening.

Dale

Reply With Quote
  #4  
Old December 2nd, 2003, 04:48 AM
Unkie Unkie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 32 Unkie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 27 sec
Reputation Power: 5
add the code of GetNames1 to the Form_Load thingy or call GetNames1_Click from where you open the window.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Recall cell value in Excel into textbox.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT