Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at "application.caller" then use that value to find the button
(use buttons from the forms collection, not the control toolbox) Sub FindMe() Dim sName Dim s sName = Application.Caller Set s = ActiveSheet.DrawingObjects(sName) MsgBox s.TopLeftCell.Address(False, False) End Sub Tim "cdde" wrote in message ... can you make a macro assigned to button aware of where that button is? i want to use the same macro for all 250+ buttons i will have associated to the row its placed on.....so i need the macro to be aware of what button triggered the macro and not to repeat the macro for all buttons. on top of that....i need the macro to beable to know where the button is.....on what column and what row....if you need my code of spreadsheet i can post it....thanx. -- cdde ------------------------------------------------------------------------ cdde's Profile: http://www.excelforum.com/member.php...o&userid=15532 View this thread: http://www.excelforum.com/showthread...hreadid=271393 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dont want #DIV/0!. | Excel Worksheet Functions | |||
Dont know if this is possible to do | Excel Discussion (Misc queries) | |||
I know what I need but dont know how to do it | Excel Worksheet Functions | |||
Imitating Pivot table's context awareness | Excel Programming | |||
Dont know how? | Excel Programming |