Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
buttons
When I click a control button, I want to assigned macro
to recognize the button's name. Any ideas how? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
buttons
You mean like have the button call the macro
Private Sub CommandButton1_Click() Call Macro1 End Su -- Message posted from http://www.ExcelForum.com |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
buttons
I mean that if the button is named "delete 1" that the
macro can identify the button name.....ie. x = button name range ("a1").value = x -----Original Message----- You mean like have the button call the macro Private Sub CommandButton1_Click() Call Macro1 End Sub --- Message posted from http://www.ExcelForum.com/ . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
buttons
not tested, but try something like.
range("a1").value = delete1.name i don't believe that you can have a space in the name of a button, d you mean the caption? if you want it to return the caption try: range("a1").value = commandbutton1.captio -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Option Buttons/Radio Buttons | New Users to Excel | |||
Form buttons vs. ActiveX Buttons | Excel Discussion (Misc queries) | |||
have toggle buttons but everytime print preview buttons move | Excel Discussion (Misc queries) | |||
pivot chart is it possible to hide individual field buttons? Layout Field buttons | Charts and Charting in Excel | |||
Control Buttons vs. Command Buttons | Excel Programming |