LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Improve PageSetup code

On Sep 4, 5:35*pm, wrote:
Correction - I had left out the ":" for some reason. Put it in and it
reads those fine. However, after paring things down, it still fails.
Perhaps I have defined something wrong. Possibly the PrintHeadings

* * * * Call PageSetupXL4M(LeftFoot:="Kidney Foundation of Canada", _
* * * * * * * * * * * * * * CenterFoot:="Page &P of &N", _
* * * * * * * * * * * * * * RightFoot:="Online " & Data & " Report", _
* * * * * * * * * * * * * * PrintHeadings:="$1:$4", _
* * * * * * * * * * * * * * Orientation:="xlLandscape", _
* * * * * * * * * * * * * * PaperSize:="xlPaperLegal")


Ok, so I isolated the following lines, and the code executed without
error, but it did not actually set anything in PageSetup. I suspect it
is the CentreFoot that is giving me grief, but the actually Page.Setup
statement doesn't seem to be doing anything except wasting time.

Very frustrating.

PrintHeadings:="$1:$4", _
CenterFoot:="Page &P of &N", _
 
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
How to improve my code? Jack Excel Programming 2 August 10th 07 09:03 AM
Improve code rjamison Excel Programming 0 June 14th 05 12:14 AM
Improve code rjamison Excel Programming 0 June 14th 05 12:14 AM
Improve code rjamison Excel Programming 0 June 14th 05 12:14 AM
Improve code Gareth Excel Programming 5 April 20th 05 03:41 PM


All times are GMT +1. The time now is 10:25 PM.

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

About Us

"It's about Microsoft Excel"