Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window item 2

Status
Not open for further replies.

DODO1

MIS
Feb 18, 2003
22
BE
Hi,

I am creating customized menu's in excel97. Is it possible to insert the original excel "window" menu in the customized menubar, so I can see which workbooks are open.

thanks
 
Hi DODO1,

Try ...

Code:
Application.commandbars("
Code:
Your Menu Name
Code:
").Controls.Add msoControlPopup,30009

Enjoy,
Tony
 
Thanks Tony, I am now getting the menu "Window" which is what I want but it is empty. I would like to have all the items of the "Window" menu specially the part where the open spreadsheets are shown exp: book1; book2 etc.

thanks
 
Hi DODO1,

You're absolutely right. Try copying the one off the menu bar - it should then come complete.

Code:
Application.Commandbars("Worksheet Menu Bar").Controls("Window").Copy _
Bar:=Application.Commandbars("Your Menu Name")

Enjoy,
Tony
 
Thank You Tony that was the missing piece! You get a star from me.

DODO1
 
A star from me, because I found the post helpful.

Chris

It worked yesterday.
It doesn't work today.
That's Windows!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top