#1   Report Post  
tkaplan
 
Posts: n/a
Default Menus


what would be the VBA to access an excel menu item?


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=387192

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

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)


"tkaplan" wrote in
message ...

what would be the VBA to access an excel menu item?


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile:

http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=387192



  #3   Report Post  
tkaplan
 
Posts: n/a
Default


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.


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=387192

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

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)


"tkaplan" wrote in
message ...

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.


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile:

http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=387192



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get menus back Sam Excel Discussion (Misc queries) 1 May 27th 05 11:38 PM
Excel in Internet Explorer Menus quit working Phil Mullins Excel Discussion (Misc queries) 0 April 8th 05 10:15 PM
create menus in excel worksheet Anthony Excel Worksheet Functions 1 February 23rd 05 03:04 PM
Drop down menus Please help Excel Discussion (Misc queries) 1 January 29th 05 07:05 PM
Problem with Pivot Table Drop-Down Menus Mac Excel Worksheet Functions 4 November 7th 04 01:18 PM


All times are GMT +1. The time now is 01:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"