Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
in a normal module I have:
Public Const instrAutofit As String _ = "This will add a control which will autofit the columns" _ & "and rows of the activesheest used range " Public Const instrAutoSum As String _ = "This will add a control to the menu that appears when you right" _ & "click a cell on a worksheet.It will have the same functionality" _ & "as the usual Autosum control that is usually situated on the toolbar" In a Userform module I have: Option Explicit Private Sub ChkAutofit_Click() Call TextBox1_Change(instrAutofit) End Sub Private Sub ChkAutoSum_Click() Call TextBox1_Change(instrAutoSum) End Sub Private Sub TextBox1_Change(xxx As String) TextBox1 = xxx End Sub Why doesn't this work?? Should I be using different events? Jason |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing Arguments in Excell | Excel Worksheet Functions | |||
Passing Arguments in Excell function | Excel Discussion (Misc queries) | |||
Passing Variable Number of Arguments to a Sub | Excel Discussion (Misc queries) | |||
Creating Event procedures from a macro | Excel Programming | |||
VBA -- procedures as arguments? | Excel Programming |