> To have your workbook open to a particular sheet in print preview mode you would
> need to have some event code which runs when the workbook is opened.
[quoted text clipped - 13 lines]
> >when they open the file it comes up in a format ike the print preview and not
> >the working format. How to I do this?
With a backup copy of your workbook open, right-click on the Excel Icon and
"View Code".
Copy/paste this code into that module.
Private Sub Workbook_Open()
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$58"
Application.DisplayFullScreen = True
With ActiveSheet.PageSetup
.CenterHeader = "Date"
.LeftFooter = "Company Name"
.PrintGridlines = False
.Orientation = xlPortrait
.Draft = False
.FirstPageNumber = xlAutomatic
End With
ActiveWindow.SelectedSheets.PrintPreview
End Sub
There are many more print features and functions you could add to this.
Best to record a macro while doing your complete print setup to see the code
generated.
Gord
>I would like it to look just like the printed document would look with the
>header and footer and be read-only and printable.
[quoted text clipped - 16 lines]
>> >when they open the file it comes up in a format ike the print preview and not
>> >the working format. How to I do this?
Gord Dibben - 13 Apr 2008 17:35 GMT
As an afterthought, maybe you should just save the workbook as a PDF and send
that to the customers.
Gord
>With a backup copy of your workbook open, right-click on the Excel Icon and
>"View Code".
[quoted text clipped - 42 lines]
>>> >when they open the file it comes up in a format ike the print preview and not
>>> >the working format. How to I do this?