23-01-20 09:53 AM
I have a modified MS Word VBO to paste a collection as a table into a document however the cursor then sits within the table. I have more text and tables to add into the document and these get added to the table.
I have been trying to create an action that would mimic Ctrl+End to get to the end of the document but can't get it to work as the standard VBA that word has doesnt translate into BP.
Does anyone have an action to move the end of a document in word?
30-01-20 06:14 AM
04-02-20 08:34 AM
You can try with:
Dim doc As Object = GetDocument(handle,documentname)
doc.Content.InsertAfter(text)
Or define range
Dim rngRange As Object
rngRange = _
doc.Range(Doc.Range.End - 1,Doc.Range.End)
rngRange.InsertAfter(text)