Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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

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
header and footer boarder line Berihu New Users to Excel 1 January 16th 08 12:10 PM
Programming header/footer strings with line feed XP Excel Programming 5 August 26th 05 01:12 PM
Please help with Adding a Footer or Header Al Excel Discussion (Misc queries) 3 August 14th 05 12:30 PM
Adding a line in footer VJ Excel Programming 1 August 1st 05 03:13 PM
Changing (Part of) Header Without Changing Footer or Rest of Header Paul Cross Excel Programming 3 May 20th 04 10:42 PM


All times are GMT +1. The time now is 09:11 AM.

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"