![]() |
#5
|
||||
|
||||
![]()
If the file protection type is 'Filling in forms' then the first content control in the document will be automatically selected when you open the document.
If the file protection is 'No changes (Read only)' then there seems to be no point in selecting anything. Reading doesn't need a selection. If you do still want to select something specific as the file is opened then you are relying on the whim's of the system/user in enabling macros. If you wanted to go down this path you can put a macro like this into your ThisDocument module Code:
Private Sub Document_Open() Dim aCC As ContentControl On Error Resume Next Set aCC = ActiveDocument.SelectContentControlsByTitle("MyDate")(1) aCC.Range.Select End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Retko | Word | 1 | 04-11-2019 09:34 PM |
![]() |
stevec5088 | Word | 1 | 12-14-2016 02:45 PM |
![]() |
megads | Excel Programming | 2 | 07-31-2014 06:10 PM |
![]() |
jborchel | Word | 8 | 10-21-2013 02:58 PM |
How to open a password-protected word document? | navalava | Word | 1 | 07-01-2012 12:15 PM |