Creating or deleting QAT entries using VBA

Ludwig

Board Regular
Joined
Apr 7, 2003
Messages
80
Office Version
  1. 365
Platform
  1. Windows
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.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top