Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This code is also from Chip Pearsons website.
The below code sees if a procedure or function is there. How do I make it to where an input box comes up and then I type the name of the procedure or sub in and it tell me the output in a msgbox? Thanx Function ModuleExists(ModuleName As String) As Boolean On Error Resume Next ModuleExists = Len( _ ThisWorkbook.VBProject.VBComponents(ModuleName).Na me) < 0 End Function Function ProcedureExists(ProcedureName As String, _ ModuleName As String) As Boolean On Error Resume Next If ModuleExists(ModuleName) = True Then ProcedureExists = ThisWorkbook.VBProject.VBComponents (ModuleName) _ .CodeModule.ProcStartLine(ProcedureName, vbext_pk_Proc) < 0 End If End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
popup picture | Excel Worksheet Functions | |||
Popup MsgBox | Excel Discussion (Misc queries) | |||
"Why did we get here????" popup | Excel Discussion (Misc queries) | |||
Are you sure popup box | Excel Programming | |||
MsgBox Popup in Excel | Excel Programming |