#1   Report Post  
Posted to microsoft.public.excel.misc
jesmin
 
Posts: n/a
Default Coding for header


Hi TheThanks in advance.
I am writing a text header at the center of my excel sheet. The text
will be in 2 lines. I am writing code like:
.CenterHeader = "Monthly Report" & vbCrLf & "For Survey".
But its giving a big gap between the 2 lines. Like:

Monthly Report
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Coding for header

I'd try widening the column, then autofitting.

Then autofit the row.

And I'd use vblf instead of vbcrlf (or even vbnewline).



jesmin wrote:

Hi TheThanks in advance.
I am writing a text header at the center of my excel sheet. The text
will be in 2 lines. I am writing code like:
CenterHeader = "Monthly Report" & vbCrLf & "For Survey".
But its giving a big gap between the 2 lines. Like:

Monthly Report


For Survey

How can I delete this gap and can have a header that will look.
Monthly Report
For Survey

-Appreciate VBA help.
--Thanks in advance

--
jesmin
------------------------------------------------------------------------
jesmin's Profile: http://www.excelforum.com/member.php...o&userid=29540
View this thread: http://www.excelforum.com/showthread...hreadid=494843


--

Dave Peterson
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
Questions concerning VBA coding Sloth Excel Discussion (Misc queries) 5 December 20th 05 04:00 PM
Color coding the excel sheets Shane Excel Discussion (Misc queries) 3 November 1st 05 04:51 PM
color coding custom number formats bob sacco Excel Discussion (Misc queries) 2 October 3rd 05 11:58 AM
User Form Coding bern Excel Discussion (Misc queries) 0 September 6th 05 04:51 PM
Hidding Macro names and coding mrbalaje Excel Discussion (Misc queries) 4 April 20th 05 04:23 PM


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