View Single Post
 
Old 06-19-2018, 08:23 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Quote:
Originally Posted by klutch View Post
I am getting an ActiveX can't create object error on this line
Code:
Set wdApp = GetObject(, "Word.Application")
Sorry. I missed the reference that you were using the Mac version . However the part of the code that references the table and its cells should still be valid for insertion into your original macro.


As for which table, you can select the table by its number i.e. in the code wdDoc.Tables(1) 1 refers to the first table.


If the table in question varies according to the data then you will have to describe how the table to be processed is determined.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote