PDA

View Full Version : Hi Killian, Can u give me the code for creating table in word



nishant
03-08-2006, 11:03 PM
Hi Killian can u give me the code for creating a Table in word document and putting data in it. I do not want to use macro I am using word from different application. In reply to my last query u gave me the code to create a word document. ur reply was like this and it worked fine , thanks:hi:

"" If you have not set a reference (late-binding), they will need to be Objects



VBA:
Dim appWd As Object Dim docSource As Object ' create a new instance of WordSet appWd = CreateObject("Word.Application") ' etc...

I want similar code for creating table in word doc and adding data to it.
Please help me out.:(

Killian
03-09-2006, 02:14 AM
Hi nishant,

Someone's answered this in the other thread (http://www.vbaexpress.com/forum/showthread.php?t=7373).
And I've posted a follow up.