Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Userforms in Excel 2003

How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Userforms in Excel 2003

try:
userform1.label1.caption = worksheets("sheet1").range("A1").value

--


Gary


"Elsa" wrote in message
...
How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Userforms in Excel 2003

Thank you. I will try this.

"Gary Keramidas" wrote:

try:
userform1.label1.caption = worksheets("sheet1").range("A1").value

--


Gary


"Elsa" wrote in message
...
How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Userforms in Excel 2003

Elsa,

If you have a Label control named lblCaption on your form, you can use
something like the following:

UserForm1.lblCaption.Caption = Worksheets("Sheet1").Range("A10").Text


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Elsa" wrote in message
...
How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Userforms in Excel 2003

Where do you put this code?

"Chip Pearson" wrote:

Elsa,

If you have a Label control named lblCaption on your form, you can use
something like the following:

UserForm1.lblCaption.Caption = Worksheets("Sheet1").Range("A10").Text


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Elsa" wrote in message
...
How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?




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
Excel and launching userforms Lumpjaw New Users to Excel 6 August 21st 06 01:39 AM
Excel and launching userforms Lumpjaw Excel Programming 6 August 21st 06 01:39 AM
Excel VBA UserForms in in Mac OS X BdP Excel Programming 2 August 18th 06 05:25 AM
Userforms in Excel 2003 created in Excel 2000 [email protected] Excel Discussion (Misc queries) 2 October 5th 05 12:31 PM
Help Userforms / Excel SUMIF Hopest Excel Worksheet Functions 4 June 3rd 05 05:38 PM


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