ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userforms in Excel 2003 (https://www.excelbanter.com/excel-programming/393547-userforms-excel-2003-a.html)

Elsa

Userforms in Excel 2003
 
How do I draw information from a cell within Excel and show this on a
label/caption on a Userform?

Gary Keramidas

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?




Chip Pearson

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?



Elsa

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?





Charlie

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?




All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com