Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Gridline Print in Excel

Status
Not open for further replies.

jhruby

IS-IT--Management
Sep 27, 2002
23
0
0
US
Is there a way the default print Gridlines in Excel? You are able to select under page setup for each document, however, I would like to make this a default. Any suggestions? Thanks, Julie
 
Hi,

No way to set a default like this.

However, you could record a macro that sets the gridlines and call the macro from the Workbook_BeforePrint event in the VB Editor (alt-F11 -- select the WORKBOOK object in the Project Explorer ctr+R -- paste the following
Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
  SetTheGrid
End Sub
Assuming that your macro is named, SetTheGrid

:)

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884

Skip,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top