Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activesheet.Pagesetup put slow my macro!

Status
Not open for further replies.

AlexHarley666

Programmer
Dec 5, 2002
31
0
0
CL
Hello!!!

My problem is the next: I have a macro to make 'X' report. In macro's end, I put the next line:

ActiveSheet.PrintArea.PageSetup = "A6:" & VarCell

But, if I try again process the macro, this is more slowly than first time (t * 3).

What's the way to nullify printarea. I attempt with:

ActiveSheet.PrintArea.PageSetup = ""

but not it works...

Please Help...!!!
 
Hi...

Yes, the line is 'ActiveSheet.PageSetup.PrintArea = ""' (I did put incorrect line, sorry :)), but, still I try again to execute macro, and this is too slow.
 
Because every single line in the pagesetup is a call to the printer

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
@SkipVought: thanks... finally, I did decided to delete PageSetup line and to process the line in another sheet.

Really, Pagesetup put my macro very slow!!!

Well, thank you very much for your help B)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top