VBA Code to Print a Variable as part of CenterHeader Problem

  • Thread starter Thread starter gvlral
  • Start date Start date
G

gvlral

Under PageSetup

..CenterHeader = "&""Arial,Bold""&12CW" + CalWk

I am getting a Type Mismatch when running this line of code.

A earlier line of code,
CalWk = Range("B1").Value
picks up the calendar week number from the worksheet.
When the line tries to run CalWk = 3

Any Help would be appreciated,
(e-mail address removed)
 
Try

..CenterHeader = "&""Arial,Bold""&12CW" & CalWk

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top