Page Setup on all sheets very slow

S

Scott

Hello,

I have read about and am experiencing first hand the lag that changing
the page setup on a sheet causes.

My macro processes workbooks that have variable amounts of sheets --
some with 20 or more. Currently I process each sheet individually
(i.e For each sheet in wkbk.Worksheets). Part of that processing is
updating the page setup.

The page setup more than quadruples the time of the macro.

So, my question is: Is it possible to have VBA group all the sheets
and then change the page setup (just once) and have it get applied to
all the sheets? It would seem that changing the page setup once,
instead of 20 or more times, would considerably cut down on the time
the macro is running.

Any insights would be really appreciated.

Thanks,
Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top