LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Reading Data from a Cell to a text box-user forms


Hello Mandle,

The code you have is correct but not the references. It needs to be
placed in the TextBox's Activate event procedure.

1) Copy the code below using CTRL+C.
2) Open the Workbook you will using the code in.
3) Press ALT+F11 to open the VBA Editor.
4) Click on the + (plus sign) next to Forms in the Project Explorer to
display the forms in your project if they aren't listed.
5) Double Click TextBox 70.
6) Place the blinking cursor at the top left side of the listed code.
7) Press CTRL+V to paste it in.
8) Press CTRL+S to Save the changes.
9) Press ALT+Q to return to Excel.


Code:
--------------------

Private Sub UserForm_Activate
TextBox70.Value = Sheets("Index").Range("B2").Value
End Sub

--------------------


Sincerely.
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=562314

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a cell that a user has clicked on Aaron1978[_25_] Excel Programming 6 June 4th 06 11:00 AM
Reading data from a cell to a text box Aaron1978[_9_] Excel Programming 3 March 7th 06 04:05 PM
Reading Data from a User Form. Aaron1978 Excel Programming 2 February 5th 06 07:19 PM
Reading data from a user form into a sheet [email protected] Excel Programming 1 September 16th 05 09:33 PM
Align text for labels in user forms Tim Archer[_2_] Excel Programming 3 January 25th 05 01:00 PM


All times are GMT +1. The time now is 10:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"