ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   restoring toolbars (https://www.excelbanter.com/excel-programming/388618-restoring-toolbars.html)

Josh C

restoring toolbars
 
i want to open the .XLB file to restore the toolbars that i cleared with a
macro when a user opened my Excel program. i what to restore their settings
when they close my program. does anyone have an example of code for me

Gary''s Student

restoring toolbars
 
It depends on which toolbars you want to refresh:

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

and then repeat for:

Worksheet Menu Bar
Chart Menu Bar
Standard
Formatting
PivotTable
Chart
Reviewing
Forms
Stop Recording
External Data
Formula Auditing
Full Screen
Circular Reference
Visual Basic
Web


and any other bars you desire.
--
Gary''s Student - gsnu200718


"Josh C" wrote:

i want to open the .XLB file to restore the toolbars that i cleared with a
macro when a user opened my Excel program. i what to restore their settings
when they close my program. does anyone have an example of code for me



All times are GMT +1. The time now is 01:14 AM.

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