Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default Changing font in custom header that is based on cell value

The vb code for setting a font size for a custom header that is static
is this:

..CenterHeader = "&16NREMTP"

But what if your header is set to a particular cell value, like this:

..CenterHeader = Range("A1") ?

I've tried putting the &16 everywhere with and w/o quotes and it fails
every time.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Changing font in custom header that is based on cell value

Michael,

I appear to have lost the original,

The code for font size is &nn so if you set the font size to 16 in cell A1
type
&16NREMTP

or

in the vb line type asuming this is within the With ActiveSheet.PageSetup

..CenterHeader = "&16" & Range("A1")

You may like to check that you are correctly picking up the value in cell A1
with a msgbox.

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"michaelberrier" wrote:

The vb code for setting a font size for a custom header that is static
is this:

..CenterHeader = "&16NREMTP"

But what if your header is set to a particular cell value, like this:

..CenterHeader = Range("A1") ?

I've tried putting the &16 everywhere with and w/o quotes and it fails
every time.

Thanks.


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
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Formula for changing colour of a cell based on Neumeric VALUE Atul Shah Excel Discussion (Misc queries) 2 March 12th 06 07:44 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Send cell value to custom pane based on current cell/row? rman666 Excel Discussion (Misc queries) 5 March 9th 05 02:46 AM


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