3/17/2024 0 Comments Word documents open in read onlyYou can also copy this subroutine a couple of times (and rename it) and use it to open different doc files. Then go back to step 1 at the start of this post. This will make Word create the personal workbook. Note: If you can't find the personal.xls project, go in Word and record a blank macro and direct it to put the macro in the personal workbook. Then type "winword /mOpenReadOnly" in command line. The operation steps are shown in Figure 1: Figure 1. Click Read-only to remove the check mark in front of it, click OK, and then open the document with Word, you can edit it. Read-Only mode does not allow you to make any changes to the document, preventing. An app that will allow us to both read and edit documents in Word. Opening a Word document as read-only helps prevent unintentional changes you make to the document from being saved. Save the module file anywhere you want if it asks. If you open a Word document, close it first right-click the Word document and select Properties. It is clear that if we only want to open Word files we do not need so many things. Replace the filename with the path of your file. Once you're in a new module type in the code attached to this message. In the Projects window (I'm doing this from memory so the window is Projects, Project Explorer or something like that), right click on your personal macro workbook project (personal.xls) and do new module (not class module). Go in word regularly, press Alt+F11 to bring up VBA editor. Not by command line switches, but you can make a macro to do it and call it from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |