View Single Post
 
Old 02-06-2012, 05:22 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
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 tinfanide,

Since you're automating Word from Excel, you need to change 'ActiveDocument' to 'oDoc'. You should also use:
Dim Tbl As Word.Table, Shp As Word.Shape, Rng As Word.Range
and you don't need:
oDoc.Activate
You've also mis-typed some of the code I gave you.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote