![]() |
#4
|
||||
|
||||
![]()
When working with cell ranges, be aware that the cell range includes the cell end character. You are more likely to get the results you are seeking if having set the range, you remove the end character from the range (whether copying or pasting) e.g.
Code:
Set rng_Paste = UserDoc.Tables(i).Cell(MyCell.RowIndex, 1).Range rng_Paste.End = rng_Paste.End - 1 TargetRangeName.FormattedText = SourceRangeName.FormattedText. Your last example code does not work with two documents and their corresponding tables.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
Tags |
tables, vba macro |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Loop and Update Content Controls with value | vss712 | Word VBA | 7 | 08-27-2015 08:56 PM |
Update fields and Tables of Content with one macro | brent chadwick | Word VBA | 7 | 03-11-2015 07:21 AM |
![]() |
tejaspareek | Word VBA | 4 | 11-04-2014 05:50 AM |
![]() |
Jamal NUMAN | Word | 1 | 05-02-2011 05:47 PM |
![]() |
Lee | Word | 5 | 02-04-2011 12:59 PM |