Quick Print Macro that will work for both 2007 and 2010

Tuckejam

Board Regular
Joined
Oct 15, 2013
Messages
81
I need a macro that will let me use the quick print function x number of times and x being the value found is cell A39


For example this is what is working in Excel 2007
ActiveWindow.SelectedSheets.PrintOut Copies:=Sheets("Auto Tag").Range("A39").Value


And I assume this is the what would work in Excel 2010
ActiveWindow.SelectedSheets.PrintOut Copies: :=Sheets("Auto Tag").Range("A39").Value, Collate:=True, _
IgnorePrintAreas:=False


I am looking for something that will work for either version and have thought of using an IF THEN ELSE statement like this

If
Application.Version = "14.0"
Then
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Else
ActiveWindow.SelectedSheets.PrintOut Copies:=Sheets("Auto Tag").Range("A39").Value


also I am open to anyway of doing this that might be better



Thanks in advance for any help and for all the help I always get here.
 
Welcome to MrExcel.

As far as I can see, there is no difference in the PrintOut method between Excel 2007 and Excel 2010.
 
Upvote 0

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