Hi all
I am preparing a spreadsheet which will have several sheets and a 'master' sheet. The user will first look at the master sheet and enter 'YES' or 'NO' as text in certain cells. I would like a macro where if the user types 'YES', CERTAIN sheets will be deleted.
For example;
If cell E30 (in 'MASTER' sheet) = 'YES', sheets 'Sheet A' and 'Sheet C' will automatically be deleted.
or if cell E40 (in 'MASTER' sheet) = 'YES', sheets 'Sheet B' and 'Sheet D' will automatically be deleted.
I am useless with macros, so if anyone with a response could tell me in WHAT sheet to paste the code and how to activate this, that would be great.
Much appreciated.
I am preparing a spreadsheet which will have several sheets and a 'master' sheet. The user will first look at the master sheet and enter 'YES' or 'NO' as text in certain cells. I would like a macro where if the user types 'YES', CERTAIN sheets will be deleted.
For example;
If cell E30 (in 'MASTER' sheet) = 'YES', sheets 'Sheet A' and 'Sheet C' will automatically be deleted.
or if cell E40 (in 'MASTER' sheet) = 'YES', sheets 'Sheet B' and 'Sheet D' will automatically be deleted.
I am useless with macros, so if anyone with a response could tell me in WHAT sheet to paste the code and how to activate this, that would be great.
Much appreciated.