Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,953
Default Display contents of a cell in a user form text box -- Excel 20

You could also link the textbox to the cell using the controlsource property

In the textboxes property window, find the controlsource property
controlsource: Sheet1!F3

this may not be desirable if you allow the user to edit the textbox.

--
Regards,
Tom Ogilvy


"hiskilini" wrote:

On Feb 19, 8:21 am, Mike wrote:
Does this work for you?

Private Sub UserForm_Initialize()
TextBox1.Text = Worksheets("Sheet1").Range("F3").Value
End Sub



"hiskilini" wrote:
Hello,


I am trying to display the value of a static cell ("F3") in a text box
within a user form. The user should not have to take any action to
display this value--it is being used as a confirmation of a file
creation and provides instructions as to what the user should do
next. The value within the text box is the file name, which is being
written to cell "F3" of my worksheet. Any help anyone could provide
would be appreciated!


Thanks,


John- Hide quoted text -


- Show quoted text -


Yes--that works perfectly. Thanks so much for your help!

John


  #2   Report Post  
Junior Member
 
Posts: 1
Default

Quote:
Originally Posted by Tom Ogilvy View Post
You could also link the textbox to the cell using the controlsource property

In the textboxes property window, find the controlsource property
controlsource: Sheet1!F3

this may not be desirable if you allow the user to edit the textbox.

--
Regards,
Tom Ogilvy


"hiskilini" wrote:

On Feb 19, 8:21 am, Mike wrote:
Does this work for you?

Private Sub UserForm_Initialize()
TextBox1.Text = Worksheets("Sheet1").Range("F3").Value
End Sub



"hiskilini" wrote:
Hello,


I am trying to display the value of a static cell ("F3") in a text box
within a user form. The user should not have to take any action to
display this value--it is being used as a confirmation of a file
creation and provides instructions as to what the user should do
next. The value within the text box is the file name, which is being
written to cell "F3" of my worksheet. Any help anyone could provide
would be appreciated!


Thanks,


John- Hide quoted text -


- Show quoted text -


Yes--that works perfectly. Thanks so much for your help!

John

i try it and not work
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
Display text box contents in cell msandomir Excel Discussion (Misc queries) 1 February 13th 07 02:18 PM
Display contents of cell in another cell as part of text string? [email protected] New Users to Excel 3 July 8th 06 07:44 PM
user form question: text box to display result BigPig Excel Discussion (Misc queries) 0 February 28th 06 12:33 AM
user form question: text box to display result BigPig Excel Worksheet Functions 0 February 25th 06 08:17 PM
Display ALL text contents in cell Flipper1067 Excel Discussion (Misc queries) 10 July 27th 05 02:22 PM


All times are GMT +1. The time now is 12:03 AM.

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"