Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 10-13-2022, 05:29 PM
Guessed's Avatar
Guessed Guessed is offline Protected Word Document Open Cursor Location Windows 10 Protected Word Document Open Cursor Location Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Protected Word Document Open Cursor Location How to control INPUT CURSOR location when clicking in Word after being in another app? Retko Word 1 04-11-2019 09:34 PM
Protected Word Document Open Cursor Location Cursor location on first click -- insertion point stevec5088 Word 1 12-14-2016 02:45 PM
Protected Word Document Open Cursor Location Hightlight cells based on cursor location megads Excel Programming 2 07-31-2014 06:10 PM
Protected Word Document Open Cursor Location Open document file location issue help required 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft