Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 553
Default Load caption box on userform open

I have a userform. I am trying to load a cell address into a caption box
when the form opens up. I am trying to do so by doing the following:

Private Sub UserForm3_Initialize()
UserForm1.Label1.Caption = ActiveCell.Parent.Name & ActiveCell.Address
End Sub

However this is not working. Am I using the wrong event?

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Load caption box on userform open

Why are you trying to get a value from form1 in form3? If that were correct,
form1 would need to be loaded, is it?

Private Sub UserForm3_Initialize()
UserForm1.Label1.Caption = ActiveCell.Address(,,,True)
End Sub

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"ExcelMonkey" wrote in message
...
I have a userform. I am trying to load a cell address into a caption box
when the form opens up. I am trying to do so by doing the following:

Private Sub UserForm3_Initialize()
UserForm1.Label1.Caption = ActiveCell.Parent.Name & ActiveCell.Address
End Sub

However this is not working. Am I using the wrong event?

Thanks

EM



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
Defining UserForm Caption from a Variable [email protected] Excel Worksheet Functions 1 January 3rd 07 02:30 PM
Caption Property the dude Excel Discussion (Misc queries) 1 June 1st 06 10:23 AM
How do I down load excel to open email attachment? confused Excel Discussion (Misc queries) 2 February 24th 06 05:40 AM
Add a button to a sheet to open a userform PokerZan Excel Discussion (Misc queries) 1 June 17th 05 11:55 PM
picture in caption?? RUSTYDK85 Excel Discussion (Misc queries) 1 May 10th 05 07:25 AM


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