Excel View

D

Dar

I would like to modify an excel document that I send to my customers so that
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?
 
G

Gord Dibben

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.

Then you would have to ensure that customers enable macros when opening the
workbook.

Print Preview mode is none too presentable in my opinion.

What exactly do you want the active sheet to look like?

No menus or toolbars showing or???


Gord Dibben MS Excel MVP
 
D

Dar

I would like it to look just like the printed document would look with the
header and footer and be read-only and printable.
 
G

Gord Dibben

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
 
G

Gdareos

You could save it and require a password to modify, then it opens as
"Read Only." This would not look like "Print Preview" option.

If you are publishing the document for distribution and don't want
them to make changes, I'd publish to a .PDF format. I use PDF
converter which is a lot cheaper than Adobe, and like it a lot.

Hope this helps,
George
 
G

Gord Dibben

As an afterthought, maybe you should just save the workbook as a PDF and send
that to the customers.


Gord
 

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

Top