what would be the VBA to access an excel menu item
B Bob Phillips Jul 14, 2005 #2 Set ctl = Commandbars("Worksheet Menu Item").Controls("Tools").Controls("Add-Ins...") as an example -- HTH RP (remove nothere from the email address if mailing direct)
Set ctl = Commandbars("Worksheet Menu Item").Controls("Tools").Controls("Add-Ins...") as an example -- HTH RP (remove nothere from the email address if mailing direct)
T tkaplan Jul 14, 2005 #3 Private Sub Workbook_Open() Set ctl = CommandBars("Worksheet Menu Item").Controls("Edit").Controls("Links...") End Sub I put this in and it returned an error. I am trying to go to the menu option: Edit / Links What am I doing wrong? Thank you.
Private Sub Workbook_Open() Set ctl = CommandBars("Worksheet Menu Item").Controls("Edit").Controls("Links...") End Sub I put this in and it returned an error. I am trying to go to the menu option: Edit / Links What am I doing wrong? Thank you.
B Bob Phillips Jul 14, 2005 #4 Try this instead Private Sub Workbook_Open() Dim ctl As CommandBarControl Set ctl = CommandBars("Worksheet Menu Bar") _ .Controls("Edit").Controls("Links...") End Sub -- HTH RP (remove nothere from the email address if mailing direct)
Try this instead Private Sub Workbook_Open() Dim ctl As CommandBarControl Set ctl = CommandBars("Worksheet Menu Bar") _ .Controls("Edit").Controls("Links...") End Sub -- HTH RP (remove nothere from the email address if mailing direct)