LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Print Setup

The following code does what is needed correctly, EXCEPT
the correct file name does not show up correctly unless:
After the whole procedure is finished, you then go into
page setup, go to the Headers/Footers tab, click on Custom
Footers, then just click OK,and OK again and then the file
name derived from "&[File]" appears correctly. I've tried
placing "&[File]" in different parts of the code, but
still, it won't recognize it until you go back into the
Custom Footer section and just click OK.

Is there some type of refresh command that I can use for
the Page Setup section? Thank you.


thepth is derived from the code before the following:

rgtft = "&[File]"

With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "&""Arial,Bold""&16&E" &
ActiveCell.Value & Chr(10) & "&12&E" & ActiveCell.Offset
(rowoffset:=1, columnoffset:=0)
.LeftFooter = Format(Date, "mm/dd/yyyy")
thisfile = thepth
.RightFooter = "&""Arial""&7" & thisfile & "\" &
rgtft
.CenterFooter = "&8&P of &N"
.Orientation = xlLandscape
.LeftMargin = Application.InchesToPoints(0.5)
.RightMargin = Application.InchesToPoints(0.5)
.TopMargin = Application.InchesToPoints(1)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
End With

 
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
Print Setup Leah Excel Discussion (Misc queries) 3 February 5th 10 01:01 AM
Print Range Setup MCheru Excel Worksheet Functions 6 February 25th 09 09:56 AM
Global Print Setup Steve Williams Setting up and Configuration of Excel 0 November 21st 05 09:37 PM
Print range setup Patty via OfficeKB.com Excel Discussion (Misc queries) 2 October 14th 05 07:06 PM
print page setup Lim family Excel Discussion (Misc queries) 1 August 22nd 05 04:16 AM


All times are GMT +1. The time now is 06:57 AM.

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"