Microsoft Office Forums

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
Advanced Beginner
Convert to read-only file
 
Join Date: Aug 2019
Posts: 38
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 online now 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: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
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
[Fmr 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
Advanced Beginner
Convert to read-only file
 
Join Date: Aug 2019
Posts: 38
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

Other Forums: Access Forums

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


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