Hello everyone,
I have this code and I want to know if there is a way to add something that when the file is read only none of the macros works.
Thanks for oyur replis.
Please Login or Register to view this content.
Hello everyone,
I have this code and I want to know if there is a way to add something that when the file is read only none of the macros works.
Thanks for oyur replis.
Please Login or Register to view this content.
How about saving a copy of the file without any macros?
OR
Add this line at the beginning of every subEditPlease Login or Register to view this content.
Oh dear!
- in school, I was always taught to read the question properly (but that was a very long time ago)
- this suggestion works for Excel but not for Word
Thank you @AliGW for the catch
Last edited by kev_; 02-18-2018 at 04:57 AM.
Click *Add Reputation to thank those who helped you. Ask if anything is not clear
I think this is a Word macro query, Kev.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Word documents have two properties you can test:
.ReadOnly
.ReadOnlyRecommended
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Did you at least look at those properties in Word's VBA help file?
Of course I did.
But I'm a newbie in VBA, and learning by reading and asking.
The VBA help for .ReadOnly should have been hint enough. The code Kev posted in post #2 gives an additional pointer. After:
With ActiveDocument
Insert:
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks