Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default macro to create toolbar on open and clear it on close

hello

i have created a toolbar menu, but i would like it to appear on opening the
workbook and disappear on closing the workbook.

any suggestions?


thanks

mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro to create toolbar on open and clear it on close


Try something like this under the worksheet object?

Private Sub Workbook_Open()

Application.CommandBars("Picture").Visible = True

End Su

--
incjour

-----------------------------------------------------------------------
incjourn's Profile: http://www.excelforum.com/member.php...nfo&userid=721
View this thread: http://www.excelforum.com/showthread.php?threadid=49514

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro to create toolbar on open and clear it on close

mike wrote:
hello

i have created a toolbar menu, but i would like it to appear on opening the
workbook and disappear on closing the workbook.

any suggestions?


thanks

mike

Mike

Try two auto macros in a module


Sub Auto_Open()

Application.CommandBars("Special").Visible = True

End Sub


Sub Auto_Close()

Application.CommandBars("Special").Visible = False

End Sub

"Special" refers to your customised toolbar.

Hugo
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
to create more than 2 open-high-low-close graphs in the same chart Tiffany Charts and Charting in Excel 0 August 14th 09 08:55 AM
Clear Auto Filter on Close (or open) Karin Excel Discussion (Misc queries) 3 August 23rd 07 06:16 PM
Macro to Open, then Close another File HROBERTSON Excel Discussion (Misc queries) 1 January 8th 07 06:41 PM
how do i create a macro to clear checkboxes and display a message. Xavierskyrider Excel Programming 7 February 25th 05 09:37 PM
run macro on close & open Stu[_27_] Excel Programming 3 October 15th 03 02:09 PM


All times are GMT +1. The time now is 03:38 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"