Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default chart menu bar vs worksheet menu bar

I just created a set of pop up menus for my worksheets but they aren'
visible in my charts. is it possible to have my menu visible on bot
without having to duplicate all the code in my worksheet menu procedur
to a chart menu procedure

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default chart menu bar vs worksheet menu bar

Hi

Application.CommandBars(1).Enabled = True
Worksheet menubar

Application.CommandBars(2).Enabled = True
Chart bar

--
Regards Ron de Bruin
http://www.rondebruin.nl


"majikman " wrote in message ...
I just created a set of pop up menus for my worksheets but they aren't
visible in my charts. is it possible to have my menu visible on both
without having to duplicate all the code in my worksheet menu procedure
to a chart menu procedure?


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default chart menu bar vs worksheet menu bar

sorry, but i don't quite understand what you're saying Ron. Maybe
should have been more specific and posted my code so here it is...

Dim newMenu As CommandBarPopup
Dim ctrlButton As CommandBarControl
Dim oCB As CommandBar
Dim oCtl As CommandBarControl

On Error Resume Next
Application.CommandBars("Worksheet Men
Bar").Controls("Bars2004").Delete
On Error GoTo 0

Set oCB = Application.CommandBars("Worksheet Menu Bar")

Application.CommandBars(1).Enabled = True

Application.CommandBars(2).Enabled = True

Set newMenu = oCB.Controls.Add(Type:=msoControlPopup
Temporary:=True

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default chart menu bar vs worksheet menu bar

Hi

Application.CommandBars(1)

this is the same as
Application.CommandBars("Worksheet Menu Bar")

Application.CommandBars(2)
Is the Chart menu bar

--
Regards Ron de Bruin
http://www.rondebruin.nl


"majikman " wrote in message ...
sorry, but i don't quite understand what you're saying Ron. Maybe I
should have been more specific and posted my code so here it is...

Dim newMenu As CommandBarPopup
Dim ctrlButton As CommandBarControl
Dim oCB As CommandBar
Dim oCtl As CommandBarControl

On Error Resume Next
Application.CommandBars("Worksheet Menu
Bar").Controls("Bars2004").Delete
On Error GoTo 0

Set oCB = Application.CommandBars("Worksheet Menu Bar")

Application.CommandBars(1).Enabled = True

Application.CommandBars(2).Enabled = True

Set newMenu = oCB.Controls.Add(Type:=msoControlPopup,
Temporary:=True)


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default chart menu bar vs worksheet menu bar

ok, i understand that I can do that. however, on m
application.commandbars(1), i have about 10 with statements below it
thats a lot of code. how could join the with statements from m
Worksheet Menu Bar with the ones from my Chart Menu Bar is what i'
askin

--
Message posted from http://www.ExcelForum.com



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
Drop dwn menu. Formula to count selection frm menu in anoth cell? ggoldber Excel Worksheet Functions 1 June 4th 08 02:21 PM
filter dropdown menu so 2nd drop menu is customized menugal Excel Worksheet Functions 1 September 4th 07 05:25 PM
Create Dropdown menu without using the Validation on the Data Menu lostinformulas Excel Worksheet Functions 0 July 13th 06 08:47 PM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Add control to the Chart menu of "Chart Menu Bar" commandbar Andrew[_16_] Excel Programming 2 November 10th 03 08:22 AM


All times are GMT +1. The time now is 05:18 AM.

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"