Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Userform reading a cell value

Hi Rich

One way

You can use this to fill the textbox with the value of cell A1
It will run when you open the userform

Place this in the Userform module

Private Sub UserForm_Initialize()
Me.TextBox1.Value = ThisWorkbook.Sheets("Sheet1").Range("a1").Value
End Sub

You can also place this line in the click event off a button
Me.TextBox1.Value = ThisWorkbook.Sheets("Sheet1").Range("a1").Value


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Rich" wrote in message ...
Is it possible to have a userform read a spreadsheet cell
value and on the same userform giving the operator two
buttons. Such as continue or cancel the form? If so how
do I get the cell value to appear in the userform?
Any help would be appreciated.
Thanks!
Rich



Reply
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 Only Numeric Value of Cell F. Lawrence Kulchar Excel Discussion (Misc queries) 5 April 9th 08 01:58 AM
reading a blank cell as zero Dana Stricker Excel Discussion (Misc queries) 5 March 13th 08 06:01 PM
Reading a cell in VBA Ruatha New Users to Excel 3 June 11th 06 04:01 PM
Reading last cell jackh7777777 Excel Discussion (Misc queries) 2 May 26th 06 01:28 AM
Reading formulae in a different cell Albert Excel Discussion (Misc queries) 3 May 5th 06 10:42 AM


All times are GMT +1. The time now is 05:07 AM.

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

About Us

"It's about Microsoft Excel"