VBA macro to open/update/print many worksheets

mbst36

New Member
Joined
Jan 22, 2013
Messages
1
In my current macro I have ~50 worksheets that I need to open/update links and print in a specific order on a shared drive. It takes me 5min to do all of this. Is there a different combination of variable/commands to print these quicker? :(

Here is a sample of my Macro:

Sub Sample_Morning()
Application.ScreenUpdating = False
Application.DisplayAlerts = False

Workbooks.Open "O:\Sample\Test\2011.xls", UpdateLinks:=False, ReadOnly:=True
Workbooks.Open "O:\Sample\Distribution\2013.xls", UpdateLinks:=True, ReadOnly:=True
Workbooks.Open "O:\Sample\Inventory\futures.xls.", UpdateLinks:=True, ReadOnly:=True

Workbooks("2011.xls").Activate
Worksheets(1).Select
ActiveSheet.PrintOut
Workbooks("2013xls").Activate
Worksheets(1).Select
ActiveSheet.PrintOut
Workbooks("futures.xls").Activate
Worksheets(1).Select
ActiveSheet.PrintOut , from:=1, to:=1

Application.ScreenUpdating = True
Application.DisplayAlerts = True

End Sub

Thanks for reading!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,216,445
Messages
6,130,685
Members
449,585
Latest member
Nattarinee

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