Microsoft Office Forums Convert to read-only file

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2019, 05:23 PM
Visor Visor is offline Convert to read-only file Windows 10 Convert to read-only file Office 2013
Novice
Convert to read-only file
 
Join Date: Aug 2019
Posts: 23
Visor is on a distinguished road
Default Convert to read-only file

Greetings friends of the forum, I would like to know if it is possible that with vba code you can make a Word file become read-only format from that date indicated in the code, that is, you can not write or do anything just I can read.



I appreciate your collaboration in advance
Reply With Quote
  #2  
Old 10-05-2019, 03:50 AM
macropod's Avatar
macropod macropod is offline Convert to read-only file Windows 7 64bit Convert to read-only file Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,609
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Anything one might do in that regard suffers from the same limitations as 'expiring' a file as per your other posts. In essence, you'd have to set the file's modification password - plus you'll have to deal with the issue that anyone who can access the VBA project will be able to see the password needed to unlock the document. Check out the Document.SaveAs2 Method in Word's VBA help file.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 10-07-2019, 02:23 PM
Visor Visor is offline Convert to read-only file Windows 10 Convert to read-only file Office 2013
Novice
Convert to read-only file
 
Join Date: Aug 2019
Posts: 23
Visor is on a distinguished road
Default

Thank you, is very useful
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover missing files --- ost file convert to pst file Loretta Outlook 0 07-22-2019 11:35 PM
Read text in a file Firemaster Word VBA 3 11-28-2018 04:18 AM
Convert to read-only file Macro to convert table to convert table into iCalendar file? Weboh Word VBA 5 12-10-2016 03:07 PM
Convert to read-only file Read only file NienkeG Word 2 08-03-2014 03:57 PM
Convert to read-only file How to convert a text file to an Excel file with the data format automatically? mradmin Excel 6 10-16-2013 10:34 AM


All times are GMT -7. The time now is 04:30 PM.


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