Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 09-26-2011, 11:47 PM
macropod's Avatar
macropod macropod is offline Printing Issue When Using A Table Windows 7 64bit Printing Issue When Using A Table 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,

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Issue When Using A Table Caption and Table of Figures issue reece22345 Word 3 04-15-2011 12:18 AM
Printing Issue When Using A Table 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft