Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Create a two-line header programmatically

Hi:

Can anyone tell me how to create a two-line header for a worksheet using
vba? I have a client who wants a data-specific date range in the header as
well as the company name. I want to put this in two lines in the header.
Currently the dates are inserted in the VBA code. Both the company name and
the dates should in the center header. Any help would be greatly
appreciated.

JJ


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Create a two-line header programmatically

As an example:

ActiveSheet.PageSetup.CenterHeader = "ABCD" & vbcr & "EFGH"

--
Regards,
Tom Ogilvy


"Jeanne Conroy" wrote in message
...
Hi:

Can anyone tell me how to create a two-line header for a worksheet using
vba? I have a client who wants a data-specific date range in the header

as
well as the company name. I want to put this in two lines in the header.
Currently the dates are inserted in the VBA code. Both the company name

and
the dates should in the center header. Any help would be greatly
appreciated.

JJ




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
HOW-TO: programmatically create SAS length statement William W. Viergever Excel Discussion (Misc queries) 1 January 13th 09 09:47 AM
Programmatically create combo boxes Richard[_31_] Excel Programming 1 August 12th 04 03:10 AM
how to create a user form programmatically Alberto Piazza Excel Programming 0 November 13th 03 01:20 AM
help with create spreadsheet programmatically Divyesh Raithatha Excel Programming 1 October 4th 03 08:02 AM
How to create picklists programmatically Harald Staff[_4_] Excel Programming 0 July 16th 03 09:59 AM


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

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"