![]() |
|
#10
|
||||
|
||||
|
Hi Christine,
Another version for you to try: Code:
Sub PartPrint()
Application.ScreenUpdating = False
Dim RngPrn As Range, RngSel As Range, oTbl As Table, oCel As Cell, i As Long
With ActiveDocument
Set RngSel = Selection.Range
Set RngClr = .GoTo(What:=wdGoToPage, Name:=RngSel.Characters.First.Information(wdActiveEndPageNumber))
Set RngClr = RngClr.GoTo(What:=wdGoToBookmark, Name:="\page")
With RngPrn
.End = RngSel.Start
.Font.Color = wdColorWhite
If RngSel.Characters.First.Information(wdWithInTable) = True Then
For Each oTbl In RngPrn.Tables
If oTbl.Range.End < RngSel.Tables(RngSel.Tables.Count).Range.End Then
For Each oCel In oTbl.Range.Cells
For i = 1 To oCel.Borders.Count
oCel.Borders(i).Color = wdColorWhite
Next
Next
Else
For Each oCel In oTbl.Range.Cells
If oCel.Row.Index < RngSel.Rows.First.Index Then
For i = 1 To oCel.Borders.Count
oCel.Borders(i).Color = wdColorWhite
Next
End If
Next
End If
Next
Else
For Each oTbl In RngPrn.Tables
For Each oCel In oTbl.Range.Cells
For i = 1 To oCel.Borders.Count
oCel.Borders(i).Color = wdColorWhite
Next
Next
Next
End If
Application.PrintOut Range:=wdPrintCurrentPage
End With
While RngPrn.Font.Color = wdColorWhite
.Undo
Wend
RngSel.Select
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] Last edited by macropod; 11-13-2011 at 03:38 AM. Reason: Minor bug fixes |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Caption and Table of Figures issue
|
reece22345 | Word | 3 | 04-15-2011 12:18 AM |
Issue with Last Row in Table
|
BabyBoomerBooster | Word Tables | 1 | 02-25-2011 02:49 AM |
| Powerpoint printing issue | eidius | PowerPoint | 1 | 01-13-2011 07:38 AM |
| Non-Printing Graphics vs Printing | v_kiviranna | Drawing and Graphics | 4 | 06-29-2010 07:04 AM |
| Pasting table in Photoshop cutting off table | azdolfan | Word Tables | 0 | 05-16-2010 01:52 PM |