Userforms in Excel 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?
 
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)
 
Where do you put this code?

Chip Pearson said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top