Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default PageSetup is slow

I notice that whenever I cange a poperty of the PageSetup object the macro gets much slower. I estimate that changing any PageSetup property takes about 1.5 seconds.

Have you also notived this behaviour? Is there an explanation? Is there a way around?

thanks,
Christof
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default PageSetup is slow

Setting pagesetup in vba IS slow. You don't really need to do it though as once set for a worksheet, it stays that way. There's not really a workaround / speedier way to do it AFAIK
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default PageSetup is slow

Hi Christof,

I notice that whenever I cange a poperty of the PageSetup object the macro gets much slower. I estimate that changing any PageSetup property takes about 1.5 seconds.

Have you also notived this behaviour? Is there an explanation? Is there a way around?


Many people use the much faster XLM PAGE.SETUP function:

ExecuteExcel4Macro "=PAGE.SETUP(...)"

For details of all the parameters, download the macrofun help file from the MS Web site (search for macrofun or xlmacr8)

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default PageSetup is slow

Thanks for the info
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default PageSetup is slow

After you use it try

ActiveSheet.DisplayPageBreaks = False

--
Regards,
Tom Ogilvy


"Christof DB" wrote in message
...
I notice that whenever I cange a poperty of the PageSetup object the macro

gets much slower. I estimate that changing any PageSetup property takes
about 1.5 seconds.

Have you also notived this behaviour? Is there an explanation? Is there a

way around?

thanks,
Christof



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot get VBA to Change PageSetup.FitToPagesWide = 1 EagleOne@microsoftdiscussiongroups[_2_] Excel Discussion (Misc queries) 6 April 26th 23 11:46 AM
PageSetup Macro Julian Glass Excel Worksheet Functions 1 March 29th 08 01:54 PM
PageSetup Stanley Excel Discussion (Misc queries) 1 December 14th 05 07:21 PM
Why is this PageSetup Macro So Slow? [email protected] Excel Discussion (Misc queries) 6 July 19th 05 09:28 PM
PageSetup slow Oliver Chiu Excel Programming 1 July 10th 03 02:06 PM


All times are GMT +1. The time now is 12:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"