LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Floating Command Bar &/or Buttons

With the workbook open, right click the Excel icon to the left of the File
menu, and choose View Code. This opens the "ThisWorkbook" code module for
the open workbook. Select the Workbook object in the left dropdown. The Open
method is selected in the right dropdown, and this procedure shell appears
in the code module:

Private Sub Workbook_Open()

End Sub

When the workbook open event occurs (i.e., the workbook is opened), this
event procedure runs. Place the menu creation code within it, or better,
call the menu creation procedure from he

Private Sub Workbook_Open()
MakeMyMenu
End Sub

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Don Lowe" wrote in message
...
Jon,

Currently, I am having to click a button to run the macro for the floating
command bar. I would like it to appear automaticly when opening this file.

By the way thank you for the code that portion works now.


"Jon Peltier" wrote:


Does the procedure not get called, or get called but not run? Put a
breakpoint inside the sub to see if code ever stops there.

You could make it more likely to find the right sub:

..OnAction = "'" & ThisWorkbook.Name & "'!Scroll31Right"

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______






 
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
Fixed or floating command buttons pgarcia Excel Programming 3 January 30th 08 05:11 PM
How to get buttons on floating control to pick up colour Roger Govier Excel Programming 4 December 4th 06 03:41 PM
Floating Command button kev_06[_15_] Excel Programming 4 June 13th 06 11:10 PM
Floating command button Pat Excel Discussion (Misc queries) 4 April 7th 06 01:28 PM
My Command Buttons keep floating on the sheet??? alondon Excel Programming 2 November 28th 04 12:35 AM


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