Conditioning Macro

simplify

New Member
Joined
May 23, 2011
Messages
1
My workbook has 4 tabs - its a master workbook.

In Tab 1 - user inputs 6 fields, based on which, tab 2, 3 or 4 populates.
My Macro should do the following:

If cell G6 in Tab 1 says "Regus",i want the macro to copy & paste tab 2 to a new sheet in a folder New Offices, naming it "Regus_Office_[today's date]"

If cell G6 in Tab 1 says "Small", copy & paste tab 3 to a given folder, naming it "Small_Office_[today's date]"

If cell G6 in Tab 1 says "Medium", copy & paste tab 4 to a folder, naming the new workbook "Medium_Office_[today's date]"

Is it possible that once the user opens copy of this workbook, a print macro is available for them to chose, if they want to quick print?

Ranges for the worktabs content i need to be C&P:

Tab 2 ( called REGUS) C2:F20
Tab 3 ( Small) C3:F69
Tab 4 (Medium) C3:F81

Thanks for you suggestions in advance!!!!!
^_^
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

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