#1
|
|||
|
|||
How to select the end of a document?
I have a Word document (.docx), that has "absolutely nothing else" than one contentcontrol. I want to type text after that control. How do I do that? I think I need to move the cursor there, but with what I have tried, for example
Code:
Selection.EndKey Unit:=wdStory |
#2
|
|||
|
|||
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey Dim oRng As Range Set oRng = ActiveDocument.Range oRng.Collapse wdCollapseEnd lbl_Exit: Exit Sub End Sub |
#3
|
|||
|
|||
Thanks, that seems to help me accomplish what I needed
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot select my custom tab when new document is opened | seamus59 | Word VBA | 0 | 03-19-2014 12:21 PM |
How to find and select text in a document? | mkhuebner | Word VBA | 8 | 02-04-2014 08:04 PM |
Select statement to a new document | ishaw | Word | 1 | 10-17-2011 02:23 AM |
Unable to select anything in an MS Word Document | PaulT | Word | 0 | 08-08-2011 07:45 PM |
Select printer to document | JosL | Office | 3 | 03-07-2009 12:40 PM |