"Conditional" QAT Icon that Only Shows when Its File is Open

dplum

Board Regular
Joined
Nov 1, 2006
Messages
217
In Excel 2007 there is a way to add an Icon to the Quick Access Toolbar (QAT) so that only shows when the file containing the macro that the Icon is assigned to is open.

The image post at https://www.screencast.com/t/HEalSvrBYI0 is something that I create some time ago to document the process of doing this. And at that time I think that this "Conditional" QAT Icon feature also worked in 2010.

PLEASE NOTE: THE STEP DOCUMENTED AT THE TOP RIGHT OF THIS IMAGE IS THE STEP THAT SEEMS TO NOT BE POSSIBLE IN 2010 AND LATER VERSIONS OF EXCEL.

IN EXCEL 2007 YOU ACTUALLY CHOOSE THE OPEN FILE CONTAINING THE MACRO AND THE REMAINING STEPS WORK AS SHOWN.

HOWEVER, IN EXCEL 2010, WHILE YOU CAN CHOOSE A FILE FROM THIS DROPDOWN, FROM THAT POINT FORWARD THE PROCESS IS PROBLEMATIC, AS THE MACRO IN THE DIALOG DISAPPEARS, AND SO IT'S NOT A WORKABLE PROCESS.

BUT, IN 2010+ YOU CAN ASSIGN A MACRO TO A BUTTON (WITHOUT USING THE DROPDOWN BEING REFERRED TO) AND THE FILE PATH ASSOCIATED WITH THAT MACRO WILL BE USED TO OPEN THE FILE.

HOWEVER, IF THE FILE IS MOVED THEN THE MACRO NO LONGER RUNS. AND SO I'D LIKE TO IMPLEMENT THE "2007 'CONDITIONAL' QAT ICON METHOD" BUT DON'T KNOW HOW TO DO IT WITHOUT RUNNING INTO PROBLEMS IN THE PROCESS OF TRYING TO SET IT UP AS IN 2007.

MIGHT SOMEONE HAVE AN ANSWER TO THIS PROBLEM?
===================================

PS: THE FILE TYPE MUST BE .XLSM NOT .XLS IN ORDER FOR THE DROPDOWN TO SHOW THE MACRO FILE.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,221
Messages
6,123,701
Members
449,117
Latest member
Aaagu

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