Could someone please explain to me how else I can execute the following two bits of script without using 'Selection' method as it causes (I think) the screen to flicker as part of my lengthy code
1)
Selection.HomeKey Unit:=wdStory, Extend:=wdMove
Selection.MoveDown Unit:=wdLine, Count:=2, Extend:=wdMove
Selection.EndKey Unit:=wdStory, Extend:=wdExtend
Selection.Delete
Selection.TypeParagraph
The above code deletes the content of the document apart from the first table, which appears right at the start of the document (which is the title of my document and is placed on it's own in the first table). The final TypeParagraph allows for a new table
to be added without joining it to the 1st table.
-
Selection.EndKey Unit:=wdStory
Selection.TypeParagraph
This code I use to goto the end of the document and again, I add a TypeParagraph to ensure that the new table I add is not joined to an existing table.
Basically, can anybody explain the various range options and features to me???