![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 128
|
In my VB Code I need to copy the header from one worksheet to another and then reformat the font size and font name but I can't seem to strip the old formatting out. Any ideas?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try the following code:
With Worksheets("New Worksheet").PageSetup .CenterHeader = "&""Times New Roman,Regular""&8The Old Header" End With This code sets the center header for a worksheet called "New Worksheet" to the text "The Old Header" in regular 8 point Times New Roman font.
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|