![]() |
|
#1
|
||||
|
||||
![]() Jennifer Your code has some unclear bits in it. If you know that the table is always the third one then you simply use that number rather than creating a variable for it. The following declaration line is probably not giving you what you expect. Dim vFlag, dummy, xx, yy, zz As Integer This is a trap for young players but this declares zz as an Integer whilst all the others are of variant type. This matters a lot because the two lines listed in Graham's post assign yy to different things yy = ActiveDocument.Tables.Count 'this is an integer yy = ActiveDocument.Tables(1) 'this is a table
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
Tags |
vba tables macro |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
donaldadams1951 | Word VBA | 4 | 02-04-2015 03:54 PM |
Pivot Table Question- Can the table display in the order the boxes were checked/selected? | blackjack | Excel | 0 | 09-13-2014 08:57 PM |
![]() |
mrokoua | Outlook | 1 | 08-26-2014 03:52 AM |
How to change the path of a table copied by excel in word as linked table RTF? | Cristin7 | Word VBA | 3 | 03-10-2014 05:25 AM |
Scripting error presented when emails are opened from one specific sender | Mr Davo | Outlook | 0 | 05-30-2012 07:01 PM |