Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
invoke a function
I need to invoke a function(fx) once a user clicks on button1
ex. Application.Worksheetfinction.CountA -- Is this correct? Thanks... |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
invoke a function
assume button1 is a commandbutton named CommandButton1. Then double click
on it in design mode to be taken to the click event Private Sub Commandbutton1_click() End Sub Put in your function there Private Sub Commandbutton1_click() msgbox "Count is " & _ application.WorksheetFunction.CountA(Selection) End Sub -- Regards, Tom Ogilvy "mmc" wrote in message ... I need to invoke a function(fx) once a user clicks on button1 ex. Application.Worksheetfinction.CountA -- Is this correct? Thanks... |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
invoke a function
Tom, what if i just want the function to pop up without a selection range.
Ex. I just want the "Solver" to come up on the screen? "Tom Ogilvy" wrote: assume button1 is a commandbutton named CommandButton1. Then double click on it in design mode to be taken to the click event Private Sub Commandbutton1_click() End Sub Put in your function there Private Sub Commandbutton1_click() msgbox "Count is " & _ application.WorksheetFunction.CountA(Selection) End Sub -- Regards, Tom Ogilvy "mmc" wrote in message ... I need to invoke a function(fx) once a user clicks on button1 ex. Application.Worksheetfinction.CountA -- Is this correct? Thanks... |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
invoke a function
If solver is loaded
Private Sub commandButton1_Click() CommandBars("Tools").Controls("Sol&ver...").Execut e End Sub Note that Solver is an addin - not a worksheet function. If you create a reference to it in the VBE, you can look at it properties and methods in the Object browser. http://support.microsoft.com/support...ver/solver.asp Creating Visual Basic Macros that Use Microsoft Excel Solver http://www.solver.com/ -- Regards, Tom Ogilvy "mmc" wrote in message ... Tom, what if i just want the function to pop up without a selection range. Ex. I just want the "Solver" to come up on the screen? "Tom Ogilvy" wrote: assume button1 is a commandbutton named CommandButton1. Then double click on it in design mode to be taken to the click event Private Sub Commandbutton1_click() End Sub Put in your function there Private Sub Commandbutton1_click() msgbox "Count is " & _ application.WorksheetFunction.CountA(Selection) End Sub -- Regards, Tom Ogilvy "mmc" wrote in message ... I need to invoke a function(fx) once a user clicks on button1 ex. Application.Worksheetfinction.CountA -- Is this correct? Thanks... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel invoke REST service function with Xpath fn parse result! | Excel Worksheet Functions | |||
How do I invoke a call in Excel | Excel Discussion (Misc queries) | |||
How can I invoke running a macro from within an "IF" function. | Excel Worksheet Functions | |||
How do I invoke a VB subroutine that exists in an Add-In? | Excel Programming | |||
Auto invoke of a VBA Sub function | Excel Programming |