Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default How do I avoid printing cell borders?

I have several sheets that have cells (sometimes in a range) with
borders. I do not want the borders to print. I presume I would use
something similar to the following:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With Worksheets("Sheet1") . . . .

Any suggestions would be appreciated.

Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default How do I avoid printing cell borders?

I think this will do what you want (assuming you are using the With
statement you showed in your example)...

..PageSetup.PrintGridlines = False

--
Rick (MVP - Excel)


"Michael Lanier" wrote in message
...
I have several sheets that have cells (sometimes in a range) with
borders. I do not want the borders to print. I presume I would use
something similar to the following:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With Worksheets("Sheet1") . . . .

Any suggestions would be appreciated.

Michael


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell borders are displayed but not printing or on print preview Thel Excel Discussion (Misc queries) 0 March 15th 10 08:15 AM
I am having trouble printing basic cell borders in Excel 2007. Michele Excel Discussion (Misc queries) 1 July 23rd 09 02:13 AM
Printing with cell borders AnnZ Excel Discussion (Misc queries) 1 March 14th 08 07:07 AM
Non Printing of Cell borders paul007 Excel Discussion (Misc queries) 7 November 4th 05 05:35 PM
Cell borders printing black instead of grey julie@mwfc Excel Discussion (Misc queries) 1 February 23rd 05 12:19 AM


All times are GMT +1. The time now is 10:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"