View Single Post
 
Old 02-10-2014, 08:41 AM
spookiepower spookiepower is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Sep 2013
Location: Denmark
Posts: 20
spookiepower is on a distinguished road
Default Problems adding VBA code to word 2010!

I a short VBA code I need to add to my doc, and that needs to be run each time the doc is being opened.

I have found out that to open the VBA editor I need to press Alt+F11, and copy this code -

Private Sub Document_Open()
ActiveDocument.Windows(1).View.ShadeEditableRanges = False
End Sub

But when I click Save, I get the message, that I can't add this code to a document without macros!

What must I do now, to get it to work ?

- Kim -
Reply With Quote