LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default CommandButton self reference

How do I reference the properties of a command button in the code of the
click event?

I assumed it would be "me." but the "me" is not valid.

example, I want to know where the button is located.
I can say CommandButton1.address
but if I want the code to be generic, I don't want to use the actual name in
the code.
I'd really like to say Me.address

How do I do this?
Thanks
 
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
Hide commandbutton? capt Excel Discussion (Misc queries) 2 February 21st 08 07:40 PM
how do i make a commandbutton run a macro?? Shax New Users to Excel 7 June 7th 06 05:16 PM
Floating CommandButton Richard Excel Worksheet Functions 1 April 29th 06 08:34 PM
Tooltip for my CommandButton LQs Excel Discussion (Misc queries) 1 December 2nd 05 09:53 AM
CommandButton - Userform Marcia3641 Excel Discussion (Misc queries) 2 July 21st 05 06:39 PM


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