Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Grid Lines vs. Borders

Hello.

Does anyone know if it's possible in Excel XP using VBA to
code a sheet so that the grid lines print very faint
without altering black borders (used for pseudo
underlining)?

If not, is there a way to make an underline appear all the
way across a cell to make it look like a border - even
blank cells?

Your example code would be most helpful in either case.
Thanks in advance for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Grid Lines vs. Borders

The folloing does the firs row. You could do them all by
changing the range for the select but remember if you put
the underline in it will print even if there is no data.
So if you were to do this for all lines then you would
print down to 65656.

Sub try()

Rows("1:1").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
Selection.Borders(xlEdgeLeft).LineStyle = xlNone
Selection.Borders(xlEdgeTop).LineStyle = xlNone
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlEdgeRight).LineStyle = xlNone
Selection.Borders(xlInsideVertical).LineStyle = xlNone
End Sub




-----Original Message-----
Hello.

Does anyone know if it's possible in Excel XP using VBA

to
code a sheet so that the grid lines print very faint
without altering black borders (used for pseudo
underlining)?

If not, is there a way to make an underline appear all

the
way across a cell to make it look like a border - even
blank cells?

Your example code would be most helpful in either case.
Thanks in advance for your assistance.
.

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
Excel- printing borders (not grid lines) Don Excel Discussion (Misc queries) 0 May 1st 08 07:38 PM
Can't print only borders. I want a grid sheet no words rs metz Excel Discussion (Misc queries) 4 August 10th 07 11:12 PM
Printing with grid lines or borders - problem AnnZ Excel Discussion (Misc queries) 2 May 30th 07 10:36 PM
Grid lines in Excel not showing.Have tools,options,view/grid cked bajlearning Excel Discussion (Misc queries) 6 January 28th 07 02:00 AM
printing grid lines when grid lines is checked fergos Setting up and Configuration of Excel 1 October 4th 05 02:55 AM


All times are GMT +1. The time now is 11:56 PM.

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"