ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro icons on menu bar disappearing (https://www.excelbanter.com/excel-programming/297084-macro-icons-menu-bar-disappearing.html)

Michael Singmin

Macro icons on menu bar disappearing
 
Hello Group,

I have several icons on the menu bar linked to macros.
This is in a Lims system for a technolgy department.
Today all my private icons disappeared - What could have caused this ?

When I create an icon linked to a macro - where is this stored ?

Thanks,

Michael Singmin


Bob Flanagan

Macro icons on menu bar disappearing
 
Michael, the icons are stored in the XLB file which is normally in the
Windows directory. But I have found them in other directories. Typically
the name is the username of who logged onto the PC. The way to find is to
search the whole machine for XLB filetypes and the most recent modified is
the one associated with the last Excel session. I have found it useful to
hide copies of this file so that it is easy to restore menu bar
customization..

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Michael Singmin" wrote in message
...
Hello Group,

I have several icons on the menu bar linked to macros.
This is in a Lims system for a technolgy department.
Today all my private icons disappeared - What could have caused this ?

When I create an icon linked to a macro - where is this stored ?

Thanks,

Michael Singmin




Gord Dibben

Macro icons on menu bar disappearing
 
Michael

Menus and Buttons can be created "on the fly" by VBA code.

OR the buttons could be created using ToolsCustomize.

If the former, could be your auto-open or workbook_open code is not firing.

If the latter, the customizations are saved in an *.XLB file.

Do a file search for *.XLB file. There may be more than one so note where
they are and make changes to your menus or toolbar and see which *.XLB file is
altered. Make a backup copy of it so's you can replace if it gets lost again.

Usually stored in your Documents and Settings\Username
Application Data\Microsoft\Excel folder.

If on a network, the *.XLB filepath can get lost.

Gord Dibben Excel MVP

On Mon, 03 May 2004 19:19:07 +0200, Michael Singmin wrote:

Hello Group,

I have several icons on the menu bar linked to macros.
This is in a Lims system for a technolgy department.
Today all my private icons disappeared - What could have caused this ?

When I create an icon linked to a macro - where is this stored ?

Thanks,

Michael Singmin



Michael Singmin

Macro icons on menu bar disappearing
 
Thank you Bob and Gord,

After reading about the vagaries of the XLB structure,
I decided on protecting the toolbar with
Commandbars ("Worksheet menu Bar").Protection = msoBarNoCustomize

Thanks for your assistance,

Michael

Michael Singmin wrote:

Hello Group,

I have several icons on the menu bar linked to macros.
This is in a Lims system for a technolgy department.
Today all my private icons disappeared - What could have caused this ?

When I create an icon linked to a macro - where is this stored ?

Thanks,

Michael Singmin




All times are GMT +1. The time now is 12:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com