Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting a header with VBA

Hello All,

Im trying to place the contents of a cell in the header for m
PrintMacro. So Im using:

.PageSetup.LeftHeader = .Range("e61").Value

But would also like it to be a certain Font & Size, so am using:

With ActiveSheet.PageSetup
.LeftHeader = "&""Microsoft Sans Serif,Regular""&14"

Has anyone any ideas as to how I might combine these two commands int
one Macro that will print cell e61 to the header AND have i
microsoftSans size14? It seems at the moment that I cant have both!!

Many Thanks,
Eddi

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formatting a header with VBA

Sub SetFooter()
With ActiveSheet
.PageSetup.LeftHeader = "&""Microsoft Sans Serif,Regular""&14" _
& .Range("E61").Value
End With

End Sub

--
Regards,
Tom Ogilvy

"universal" wrote in message
...
Hello All,

Im trying to place the contents of a cell in the header for my
PrintMacro. So Im using:

PageSetup.LeftHeader = .Range("e61").Value

But would also like it to be a certain Font & Size, so am using:

With ActiveSheet.PageSetup
LeftHeader = "&""Microsoft Sans Serif,Regular""&14"

Has anyone any ideas as to how I might combine these two commands into
one Macro that will print cell e61 to the header AND have it
microsoftSans size14? It seems at the moment that I cant have both!!

Many Thanks,
Eddie


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting a header with VBA

Thanks very much Tom,

Seems so obvious in hidsight!!

E

--
Message posted from http://www.ExcelForum.com

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
Change Header on Multiple Sheets without Changing Other Formatting David Excel Discussion (Misc queries) 1 April 22nd 10 12:51 AM
Grouped sheets page formatting will copy the header James Trujillo Excel Worksheet Functions 3 December 9th 09 01:26 AM
Copy Header/Footer to Retain Formatting Jill E. Lingle Excel Discussion (Misc queries) 3 March 3rd 08 06:36 PM
Formatting Date in Header & Footer Eliza Excel Discussion (Misc queries) 1 March 15th 05 09:17 PM
how do I permanetly add custom header to excel header list? GARY Excel Discussion (Misc queries) 1 December 15th 04 08:52 PM


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