Creating or deleting QAT entries using VBA

Ludwig

Board Regular
Joined
Apr 7, 2003
Messages
50
Is there a way in VBA to test, create & delete any Quick Access Toolbar entries? My internet searches have only revealed how to do this manually.

My spreadsheet application is used in multiple places, so one copy needs a different QAT entry to another copy. Hence I wish to be able to test if the correct one exists, and if not, create it, and if the *wrong* ones exists then delete it. Saves having to remember when I update the application in one place to recreate / remove QAT entries.

P.S. I use a "template" approach for the app, importing the data from the production spreadsheet then saving the resultant updated spreadsheet over the top of the original production one .. having made a backup of production first of course ;)
This saves having to remember what code updates would need to be manually copied over each time. Sometimes changes are minor, sometimes more extensive .. all depending on what the business has requested at that time.
At present I have a MSGBOX reminder once the data is migrated into the latest template to redo any QAT entries but it would be nice to programmatically do the entries.

Thanks.
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Watch MrExcel Video

Forum statistics

Threads
1,114,314
Messages
5,547,170
Members
410,775
Latest member
alal1030
Top