Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I set the value of a textbox on a userform to the value in a named cell?

Let's say that I have a cell named "FredCell". And I have a textbox
("textbox1") on a userform. When I activate the userform, I want the
form to display the value in "FredCell" in textbox1. Is there anyway
to refer to the name "FredCell" without using row and column notation?

I hope this question isn't too basic, but I'm just starting out!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default How do I set the value of a textbox on a userform to the value in anamed cell?

If you used Insert|Name|Define and called that cell FredCell, then you could do
something like:

Me.TextBox1.Value = Worksheets("sheet1").Range("FredCell").Value



CR wrote:

Let's say that I have a cell named "FredCell". And I have a textbox
("textbox1") on a userform. When I activate the userform, I want the
form to display the value in "FredCell" in textbox1. Is there anyway
to refer to the name "FredCell" without using row and column notation?

I hope this question isn't too basic, but I'm just starting out!


--

Dave Peterson

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
Userform with textbox displaying Cell B1 Value JMay Excel Discussion (Misc queries) 2 October 4th 09 12:56 AM
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM
Help with Syntax UserForm TextBox John Wilson Excel Programming 1 July 28th 03 04:15 PM
Userform Textbox writing to a cell Rich[_12_] Excel Programming 3 July 22nd 03 02:34 AM


All times are GMT +1. The time now is 05:57 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"