View Single Post
 
Old 09-26-2011, 06:06 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,515
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Christine,

Try the following revised code:
Code:
Sub PartPrint()
Application.ScreenUpdating = False
Dim RngPrn As Range, RngSel As Range, oTbl As Table, oCel As Cell, i As Long, j As Long
With ActiveDocument
  Set RngPrn = .GoTo(What:=wdGoToPage, Name:=.Range.Information(wdActiveEndPageNumber))
  Set RngPrn = RngPrn.GoTo(What:=wdGoToBookmark, Name:="\page")
  Set RngSel = Selection.Range
  With RngPrn
    .End = RngSel.Start
    .Font.Color = wdColorWhite
    For Each oTbl In RngPrn.Tables
      For Each oCel In oTbl.Range.Cells
        For j = 1 To oCel.Borders.Count
          oCel.Borders(j).Color = wdColorWhite
          i = i + 1
        Next
      Next
    Next
  Application.PrintOut Range:=wdPrintCurrentPage
  End With
  For j = 1 To i
    .Undo
    If RngPrn.Font.Color <> wdColorWhite Then Exit For
  Next
  RngSel.Select
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote