Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Header/Footer horizontal margins/text positioning

Is there a way to set horizontal header/footer margins? Or, to set the color
of header/footer text? I need to shift a date in the right footer leftwards
about two spaces for it to align. When I type two spaces (or any number of
spaces) after the date in the footer, Excel trims them.

I tried inserting two Chr(32)s (spaces) after the date in VB but they were
still trimmed (the date is being placed in the footer using "&D" in VB, but I
have the same issue when I type the spaces directly after the date in the
footer).

Also found a couple ASCII characters I didn't have on my machine, and I
placed one after the two spaces. This succeeded in preserving the two
spaces, but when I opened the document on another machine the ASCII character
showed up, so I need another solution.

Placing the date in the center footer and inserting a bunch of spaces before
it to shift it rightward is not an option because the page number is in the
center footer.

Anyone know a way to shift text leftwards, or to set the color so I can put
some white characters after the date to 'shift' it over?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Header/Footer horizontal margins/text positioning

try a chr(160) instead of a chr(32)

--
Regards,
Tom Ogilvy


"akhergert" wrote in message
...
Is there a way to set horizontal header/footer margins? Or, to set the

color
of header/footer text? I need to shift a date in the right footer

leftwards
about two spaces for it to align. When I type two spaces (or any number

of
spaces) after the date in the footer, Excel trims them.

I tried inserting two Chr(32)s (spaces) after the date in VB but they were
still trimmed (the date is being placed in the footer using "&D" in VB,

but I
have the same issue when I type the spaces directly after the date in the
footer).

Also found a couple ASCII characters I didn't have on my machine, and I
placed one after the two spaces. This succeeded in preserving the two
spaces, but when I opened the document on another machine the ASCII

character
showed up, so I need another solution.

Placing the date in the center footer and inserting a bunch of spaces

before
it to shift it rightward is not an option because the page number is in

the
center footer.

Anyone know a way to shift text leftwards, or to set the color so I can

put
some white characters after the date to 'shift' it over?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Header/Footer horizontal margins/text positioning

Is 160 a blank character universally? One machine I tried it on still
printed a box with a gray outline- could just have been the printer though.


"Tom Ogilvy" wrote:

try a chr(160) instead of a chr(32)

--
Regards,
Tom Ogilvy


"akhergert" wrote in message
...
Is there a way to set horizontal header/footer margins? Or, to set the

color
of header/footer text? I need to shift a date in the right footer

leftwards
about two spaces for it to align. When I type two spaces (or any number

of
spaces) after the date in the footer, Excel trims them.

I tried inserting two Chr(32)s (spaces) after the date in VB but they were
still trimmed (the date is being placed in the footer using "&D" in VB,

but I
have the same issue when I type the spaces directly after the date in the
footer).

Also found a couple ASCII characters I didn't have on my machine, and I
placed one after the two spaces. This succeeded in preserving the two
spaces, but when I opened the document on another machine the ASCII

character
showed up, so I need another solution.

Placing the date in the center footer and inserting a bunch of spaces

before
it to shift it rightward is not an option because the page number is in

the
center footer.

Anyone know a way to shift text leftwards, or to set the color so I can

put
some white characters after the date to 'shift' it over?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Header/Footer horizontal margins/text positioning

It is a non-breaking space character commonly used in web pages. Whether
any fonts use it as something else, I can't say.

--
regards,
Tom Ogilvy


"akhergert" wrote in message
...
Is 160 a blank character universally? One machine I tried it on still
printed a box with a gray outline- could just have been the printer

though.


"Tom Ogilvy" wrote:

try a chr(160) instead of a chr(32)

--
Regards,
Tom Ogilvy


"akhergert" wrote in message
...
Is there a way to set horizontal header/footer margins? Or, to set

the
color
of header/footer text? I need to shift a date in the right footer

leftwards
about two spaces for it to align. When I type two spaces (or any

number
of
spaces) after the date in the footer, Excel trims them.

I tried inserting two Chr(32)s (spaces) after the date in VB but they

were
still trimmed (the date is being placed in the footer using "&D" in

VB,
but I
have the same issue when I type the spaces directly after the date in

the
footer).

Also found a couple ASCII characters I didn't have on my machine, and

I
placed one after the two spaces. This succeeded in preserving the two
spaces, but when I opened the document on another machine the ASCII

character
showed up, so I need another solution.

Placing the date in the center footer and inserting a bunch of spaces

before
it to shift it rightward is not an option because the page number is

in
the
center footer.

Anyone know a way to shift text leftwards, or to set the color so I

can
put
some white characters after the date to 'shift' it over?






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 and Footer margins Lenny Excel Discussion (Misc queries) 1 August 8th 09 12:37 AM
Excel 2003 - Margins - Footer/header oceanmist Excel Discussion (Misc queries) 2 August 30th 06 06:12 PM
Header/Footer side margins GDC Excel Discussion (Misc queries) 1 October 21st 05 12:27 AM
Left/Right Margins in Header/Footer BobB Excel Discussion (Misc queries) 1 November 29th 04 09:04 PM
Left/Right Header/Footer Text Margins! agarwaldvk[_19_] Excel Programming 2 August 30th 04 12:39 AM


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