by Allen Wyatt
(last updated March 24, 2020)
Tony is looking for a way to put buttons on the toolbar that will open regularly used Excel workbooks, without the use of a macro.
Most people use custom toolbar buttons to initiate macros, including macros that open new workbooks. Here, for instance, is a simple macro that could be used to get the desired results:
Public Sub OpenMyWorkbook() Workbooks.Open _ Filename:="D:\Data\MyWorkbook.xls", _ UpdateLinks:=False End Sub
All you need to do is change the name of the macro and the name of the file you want to open, and you've got a great way to open specific workbooks. If you don't want to use the macro (and many people, such as Tony, prefer not to), then you can follow these steps:
Figure 1. The Commands tab of the Customize dialog box.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2884) applies to Microsoft Excel 97, 2000, 2002, and 2003.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Excel's interface can be easily modified to reflect the way you want to do your work. This tip explains how you can ...Discover More
After a time you may not need one of the custom toolbars you've created. This tip explains how to free up resources in ...Discover More
Once you've edited your toolbars, you may want to change them back to their default appearance and behavior. This tip ...Discover More
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.