Input Custom Header on Print

  • Thread starter Thread starter DDawson
  • Start date Start date
D

DDawson

Is there a way to make Excel ask for Custom Header Text after sending a print
command.

I want to be able to print out Autofiltered Tables and have specific titles
for them according to the data I've filtered.

If Excel could ask me for the Title text before the print, this would be
ideal.

Regards
Dylan
 
DDawson said:
Is there a way to make Excel ask for Custom Header Text after sending a print
command.

I want to be able to print out Autofiltered Tables and have specific titles
for them according to the data I've filtered.

If Excel could ask me for the Title text before the print, this would be
ideal.

Regards
Dylan
 
I finally got it, thanks to Ivan F Moala and
http://www.mrexcel.com/archive/VBA/18199.html

Private Sub btnTitle_Click()
Dim strTitle As String

strTitle = frmPageTitle.txtTitle.Value

ActiveSheet.PageSetup.CenterHeader = "&""Arial,Bold""&14 " & strTitle _
& Chr(10) & (Date)

frmPageTitle.Hide
End Sub
 

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