Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
i have tried to find the answer to this, I ahve used a control box command button and want to determine its name from code so i can use this elsewhere. i know application.caller does not work Private Sub ToggleMonth1_Click() Dim CtrlName As String With Worksheets("DP + SDS") ctrlname = ? 'help it should be toggleMonth1 End With End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/201006/1 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In a standard module, declare a public string variable (one line at the top)
Public strCtlName as String In the Sheet module... Private Sub ToggleMonth1_Click() strCtlName = Me.ToggleMonth1.Name 'other code End Sub -- Jim Cone Portland, Oregon USA Review of Special Sort add-in... http://www.contextures.com/excel-sort-addin.html "pjbur2005 via OfficeKB.com" <u18722@uwe wrote in message Hi i have tried to find the answer to this, I ahve used a control box command button and want to determine its name from code so i can use this elsewhere. i know application.caller does not work Private Sub ToggleMonth1_Click() Dim CtrlName As String With Worksheets("DP + SDS") ctrlname = ? 'help it should be toggleMonth1 End With End Sub -- Message posted via OfficeKB.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Difference between a Forms Control verus Active-X Control | Excel Discussion (Misc queries) | |||
how to set active x control | Excel Discussion (Misc queries) | |||
Active X Control Help | Excel Programming | |||
Tool Tip Text for Form control/ Active-X control | Excel Programming | |||
Active X Control | Excel Programming |