Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Howdie,
Is it possible to create a form that when you click a button runs a Macro based on the contents of what has been entered into a form? If yes...Any ideas how... ? Regards D *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, but we probably need more detail to be specific.
In principle however, you create a macro with arguments, and call that macro with form elements as the parameters. For example myMacro Textbox1.Value, Combobox1.Value and then myMacro looks like Sub myMacro(val1 As String, val2 As String) ' then use val1 and val2 in here End Sub -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Darin Kramer" wrote in message ... Howdie, Is it possible to create a form that when you click a button runs a Macro based on the contents of what has been entered into a form? If yes...Any ideas how... ? Regards D *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macros, Forms, & Protected Worksheets..... how would I... | Setting up and Configuration of Excel | |||
Excel forms in macros | Excel Discussion (Misc queries) | |||
RefEdits and normal forms / forms in a DLL | Excel Programming | |||
Forms that open from forms | Excel Programming | |||
Calling Forms from Forms - Exit problems | Excel Programming |