View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default VB.NET code for Header Font

Try


ActiveSheet.PageSetup.CenterHeader = "&B Line One" & Chr(10) &
"Line Two"

The &B makes it bold.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Elena" wrote in message
...
I need my header to be in bold.

This is the code I have so far:

CDRLWs.PageSetup.LeftHeader = "CDRL: " & ComboBox2.Text &
Chr(10) & "DID
No.: N/A"

(This is my last question of the day, I promise).

Thanks!!
Elena