Excel VBA: Changing file name + If condition

Manucas

New Member
Joined
Jul 13, 2018
Messages
12
Hello people.

I would like to know how can i change a file name taking into account an if condition.

Therefore, in specific:
1. The purpose of the code is oriented to, if i don't have the file open, i can see its name and realize that something changed or not in the sheet;
2. The condition is supposed to be definied by the cell color, so, if at least one cell of a group of cells have a specific color (that's defined by conditional formatting) then the name would change and would include a letter, a character or something else, to signal that the sheet needs changes;
3. Once the changes were made and the condition was not checked, the file would be renamed again to the original name;

If somenone can help me, i would appreciate.

Thank You in advance.
BR
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

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