Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 07-02-2020, 04:16 PM
Guessed's Avatar
Guessed Guessed is offline Where did my VBA code go? Windows 10 Where did my VBA code go? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,177
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

OK. The following steps are a lot easier if you have 7-Zip but I will assume you don't have a specific zip file editor installed so this involves more steps.

Take a copy of the file and change the file extension to .zip
Open the zip file and you will see a folder structure. In the docProps folder you will find a file called app.xml
Extract that app.xml file onto your desktop and open it with a Text Editor such as Notepad.
Find the text which says <DocSecurity>0</DocSecurity> and change it to <DocSecurity>1</DocSecurity>
Save the file and close the text editor.
Copy the app.xml file you just modified back into the zip file to overwrite the existing file.
Close the zip file and rename it to end with .docm again
Now open the Word file and see if you can get to the code.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where did my VBA code go? List of ascii code of Character Symbols or code for all symbols used in Word SamDsouza Word VBA 3 03-12-2020 04:49 AM
Where did my VBA code go? AutoOpen code to change date code to date text Legal Learning Center Word VBA 6 02-22-2020 02:24 PM
Help with code VBA walber Excel Programming 0 02-20-2017 11:24 AM
Where did my VBA code go? Help with Code AJacLo Excel Programming 2 02-19-2017 03:57 PM
Where did my VBA code go? VBA Code to search for field codes with certain text before the Field code and to change style welcometocandyland Word VBA 4 02-08-2017 06:53 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:16 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