LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default VB coding assistance for Header/Footer

I'm using the following per the instructions below, and located at:
http://www.cpearson.com/excel/headfoot.htm

However the 2 rows highlighted in Red are not pulling the Data from cells B2
and B3.

Secondly I would like to make a Font Transition to 22PTS for for cells B2
and B3.


Private Sub Workbook_BeforePrint(Cancel As Boolean)

ActiveSheet.PageSetup.Leftheader = "&B&18&""Arial"" Stock: "
Format (Worksheets("CALL_Profitability").Range("B2").Valu e)

ActiveSheet.PageSetup.Centerheader = "&B&18&""Arial"" Option: "
Format (Worksheets("CALL_Profitability").Range("B3").Valu e)

End Sub

Thanks,
Hank


 
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
Assistance with VB Coding in excel required for Telnet and FTP functionality Clinton M James[_2_] Excel Programming 0 February 26th 07 12:35 PM
Coding for custom footer cakprogramming Excel Programming 2 March 25th 06 01:52 PM
coding for footer,help please kathy Excel Programming 1 March 15th 06 02:26 AM
Coding assistance needed. fpd833 Excel Programming 1 November 17th 04 06:05 PM
Coding Assistance Ronald Dodge Excel Programming 0 September 9th 03 09:00 PM


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