J
jam
Hi All,
Iam using the vbscript below. this does add an empty table in a word
document. this erases all the contents in the word document and then
adds the table. I need to append the table(means to add the table at
the end of the file) kindly help me in this.
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Open(strFilePath,1,True)
Set objRange = objDoc.Range()
objRange.Tables.Add objRange, intRowCount, intColumnCount
Set objTable = objRange.Tables(1)
objDoc.SaveAs(strFilePath)
objWord.Quit
Thanks,
Ruby
Iam using the vbscript below. this does add an empty table in a word
document. this erases all the contents in the word document and then
adds the table. I need to append the table(means to add the table at
the end of the file) kindly help me in this.
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Open(strFilePath,1,True)
Set objRange = objDoc.Range()
objRange.Tables.Add objRange, intRowCount, intColumnCount
Set objTable = objRange.Tables(1)
objDoc.SaveAs(strFilePath)
objWord.Quit
Thanks,
Ruby