![]() |
|
|
|
#1
|
|||
|
|||
|
Quote:
As for the automation, if you notice I use a variable for a counter to check the number of rows in a table. If rows are added or deleted it will be reflected in that count and when the total is reached the program ends. I am receptive to improvements if anyone has one. Thanks1 |
|
#2
|
||||
|
||||
|
Quote:
Code:
Sub Demo()
Dim lBkClr As Long, lFrClr As Long, i As Long
With ActiveDocument.Tables(1).Range
For i = 1 To .Cells.Count
With .Cells(i)
.Range.Copy
lBkClr = .Shading.BackgroundPatternColor
lFrClr = .Shading.ForegroundPatternColor
End With
With ActiveDocument.Tables(2).Range.Cells(i)
.Range.Paste
.Shading.BackgroundPatternColor = lBkClr
.Shading.ForegroundPatternColor = lFrClr
End With
Next
End With
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Paul,
I'll give your code a try. I must only have the text Bookmarked in that case. I'll play around some more with utilizing Bookmarks to capture all settings for a cell. Thanks again. Mark |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linking excel table to powerpoint for easy update | atwood121 | PowerPoint | 0 | 05-11-2012 07:09 AM |
How do I dynamically update data in a Word Document from a database table
|
RSchmidt | Word | 1 | 07-14-2011 04:27 PM |
| Table update in running presentation | rumdrum | PowerPoint | 0 | 02-10-2011 01:28 PM |
SOS - cannot update table of content properly
|
Lee | Word | 5 | 02-04-2011 12:59 PM |
| Easy Update "Table of Contents" feature in Microsoft Word 2007 VS. Word 2010 | Xarzu | Word | 0 | 09-22-2010 06:54 PM |