View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default Adding a second line in a header or footer through VBA

It goes where you want the line feed to occur:

Sheets(1).PageSetup.CenterFooter = "&"Arial" &B &12 &"mytext" _
& vbCrLf & "more mytext" & vbCrLf & "more mytext"

Would give you three lines of text in Bold Arial type.

"Montana" wrote:

JLGWhiz: Where does this code co in the line to be typed? e.g.,
.CenterFooter = "xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxx"
--
Peace


"JLGWhiz" wrote:

You can use: & vbCrLf

"Montana" wrote:

How do I add a second line in a footer using RightFooter?
--
Peace