LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
ts1 ts1 is offline
external usenet poster
 
Posts: 6
Default Header formatting problem

I have 2 cells with values I want to print on a 2 line Center header with
different font sizes. The first value goes on line 1 of header with font size
22 and the second value on line 2 of header in font size 16. I can get two
literal text strings to format correctly but not the values in the following
cell references. I have also tried setting variables to the values and trying
to use them in the format statement. Can someone please provide the proper
syntax to get desired result. Thanks, Tom

Sheet1!b2
Sheet1!b4

I am having difficulty forming the proper syntax to the following statement:
--------------------------
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet

For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.CenterHeader = ...

Next wkSht
End Sub
---------------------------

 
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
Problem W Header Sally Excel Discussion (Misc queries) 3 May 21st 09 08:08 PM
Header Problem ChrisA Excel Discussion (Misc queries) 0 February 17th 05 03:51 PM
Formatting Codes for header and footer chambers777 Excel Programming 2 January 6th 04 11:50 PM
Formatting a header with VBA universal[_15_] Excel Programming 2 December 10th 03 02:07 PM
Header problem! Bob Vance Excel Programming 2 July 14th 03 06:54 AM


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