Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PO PO is offline
external usenet poster
 
Posts: 66
Default Header/Left margin

Hi,

I run Excel 2k, SR1.

I'm formatting a report using PagesSetup.

I've reduced the reportsections left margin to 0.61... The problem is that
the header margin doesn't seem to use the body sections left margin, making
the text in the left header print a few points to the right of the rest of
the report.

Is there any way, using VBA, to also ajust the headers left margin?

TIA
Peter

[part of the code]

With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$" & Range(strStartcell).Row
.LeftHeader = "&""Arial,Bold""&14Report Header"
.RightHeader = "&8&D"
.RightFooter = "&8&P(&N)"
.LeftMargin = Application.InchesToPoints(0.611811023622047)
.RightMargin = Application.InchesToPoints(0.611811023622047)
.TopMargin = Application.InchesToPoints(0.984251968503937)
.BottomMargin = Application.InchesToPoints(0.784251968503937)
.HeaderMargin = Application.InchesToPoints(0.511811023622047)
.FooterMargin = Application.InchesToPoints(0.411811023622047)
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
End With



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Header/Left margin

you might try adding a few leading spaces to the text in
the left header to shift the text over to where you want
it. yes cheap i know but it works.
-----Original Message-----
Hi,

I run Excel 2k, SR1.

I'm formatting a report using PagesSetup.

I've reduced the reportsections left margin to 0.61...

The problem is that
the header margin doesn't seem to use the body sections

left margin, making
the text in the left header print a few points to the

right of the rest of
the report.

Is there any way, using VBA, to also ajust the headers

left margin?

TIA
Peter

[part of the code]

With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$" & Range(strStartcell).Row
.LeftHeader = "&""Arial,Bold""&14Report Header"
.RightHeader = "&8&D"
.RightFooter = "&8&P(&N)"
.LeftMargin = Application.InchesToPoints

(0.611811023622047)
.RightMargin = Application.InchesToPoints

(0.611811023622047)
.TopMargin = Application.InchesToPoints

(0.984251968503937)
.BottomMargin = Application.InchesToPoints

(0.784251968503937)
.HeaderMargin = Application.InchesToPoints

(0.511811023622047)
.FooterMargin = Application.InchesToPoints

(0.411811023622047)
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
End With



.

  #3   Report Post  
Posted to microsoft.public.excel.programming
PO PO is offline
external usenet poster
 
Posts: 66
Default Header/Left margin

Hi

I have the oposite problem - since my left margin is SMALLER then normal the
body text is to the LEFT of the report header.

Is there any solution to the problem?

Regards
Peter

"Frank Stone" wrote in message
...
you might try adding a few leading spaces to the text in
the left header to shift the text over to where you want
it. yes cheap i know but it works.
-----Original Message-----
Hi,

I run Excel 2k, SR1.

I'm formatting a report using PagesSetup.

I've reduced the reportsections left margin to 0.61...

The problem is that
the header margin doesn't seem to use the body sections

left margin, making
the text in the left header print a few points to the

right of the rest of
the report.

Is there any way, using VBA, to also ajust the headers

left margin?

TIA
Peter

[part of the code]

With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$" & Range(strStartcell).Row
.LeftHeader = "&""Arial,Bold""&14Report Header"
.RightHeader = "&8&D"
.RightFooter = "&8&P(&N)"
.LeftMargin = Application.InchesToPoints

(0.611811023622047)
.RightMargin = Application.InchesToPoints

(0.611811023622047)
.TopMargin = Application.InchesToPoints

(0.984251968503937)
.BottomMargin = Application.InchesToPoints

(0.784251968503937)
.HeaderMargin = Application.InchesToPoints

(0.511811023622047)
.FooterMargin = Application.InchesToPoints

(0.411811023622047)
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
End With



.



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
header margin Leon Meyers Excel Discussion (Misc queries) 2 January 23rd 11 05:03 PM
When printing in Excel, I can not change left margin set up Laketch Setting up and Configuration of Excel 0 April 29th 06 08:36 PM
header in right or left margin? Michelle Excel Discussion (Misc queries) 2 January 26th 05 04:44 PM
how do I make the left margin of a header the same as the page ma. Dipper Excel Discussion (Misc queries) 1 January 12th 05 03:19 PM
header of portrait page in left margin koekiemonster Excel Programming 1 July 21st 04 02:01 PM


All times are GMT +1. The time now is 03:32 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"