Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey guys
What is the code to test to see if the workbook menu item "Import Data" exists? If it exists, it will be located to the right of the menu item "Help". Thanx Todd Huttenstine |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Todd
You seem to be busy these days :-) Function GotMenu(strCapt As String) As Boolean On Error Resume Next GotMenu = Len(Application.CommandBars(1).Controls(strCapt).C aption) End Function Sub test() MsgBox GotMenu("File") MsgBox GotMenu("Import Data") End Sub -- HTH. Best wishes Harald Followup to newsgroup only please "Todd Huttenstine" skrev i melding ... Hey guys What is the code to test to see if the workbook menu item "Import Data" exists? If it exists, it will be located to the right of the menu item "Help". Thanx Todd Huttenstine |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ha yeah I am busy. THanx for your help.
Todd "Harald Staff" wrote in message ... Hi Todd You seem to be busy these days :-) Function GotMenu(strCapt As String) As Boolean On Error Resume Next GotMenu = Len(Application.CommandBars(1).Controls(strCapt).C aption) End Function Sub test() MsgBox GotMenu("File") MsgBox GotMenu("Import Data") End Sub -- HTH. Best wishes Harald Followup to newsgroup only please "Todd Huttenstine" skrev i melding ... Hey guys What is the code to test to see if the workbook menu item "Import Data" exists? If it exists, it will be located to the right of the menu item "Help". Thanx Todd Huttenstine |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
keep new menu item with workbook | Excel Discussion (Misc queries) | |||
Match return #NA ...though item exists! | Excel Discussion (Misc queries) | |||
Menu items added with menu item editor in older versions | Excel Discussion (Misc queries) | |||
determinate if pop up menu exists | Excel Programming | |||
Testing to see if a sheet name exists | Excel Programming |