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 add it to a
label/caption on a Userform?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default Userforms in Excel 2003

Like this, have to include the sheet
Private Sub UserForm_Activate()
UserForm1.Caption = Sheets("sheet1").Cells(1, 1)

End Sub

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Elsa" wrote:

How do I draw information from a cell within Excel and add it to a
label/caption on a Userform?

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

When do you want it to happen

Say when the form is first shown
In the userform module:

Private Sub Userform_Initialize()
me.Label1.Caption = Worksheets("Sheet2").Range("B9").Text
End Sub


If you wanted to link it to a cell then use a textbox. for Properties,
change the specialeffect property to flat and the backcolor to menu bar
and Locked to true

This will make it look pretty much like a label.

--
regards,
Tom Ogilvy


"Elsa" wrote:

How do I draw information from a cell within Excel and add it to 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
Userforms in Excel 2003 Elsa Excel Programming 4 December 18th 07 04:26 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
Creating UserForms in Excel RayzGurl Excel Programming 1 February 1st 04 11:55 AM


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