J
JD2
Hi Word Gurus,
We are about to roll out Office 2007 across our organisation. One of our
users who is testing the software is running into issues with a special
template that typically runs an autonew macro when it is opened from within
Word. The security in Word is set to disable macros, but when you enable the
content via the option that appears, the autonew macro won't run, so the
initial form doesn't appear.
The template doesn't work properly within Word when we use File, Open
command. However, on testing it myself I noticed it will work OK when run
from Windows Explorer instead (ie. when you tell it to enable the content in
Word 2007 this way, the autorun macro appears).
The autorun macro appears below:
Public Sub MAIN()
ActiveDocument.ShowGrammaticalErrors = True
ActiveDocument.ShowSpellingErrors = True
ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
ActiveWindow.ActivePane.View.ShowAll = False
ActiveWindow.View.ShowFieldCodes = False
Load frmContractInput
frmContractInput.Show
End Sub
Any ideas how we can get it to work from within Word 2007?
Kind regards
JD2
We are about to roll out Office 2007 across our organisation. One of our
users who is testing the software is running into issues with a special
template that typically runs an autonew macro when it is opened from within
Word. The security in Word is set to disable macros, but when you enable the
content via the option that appears, the autonew macro won't run, so the
initial form doesn't appear.
The template doesn't work properly within Word when we use File, Open
command. However, on testing it myself I noticed it will work OK when run
from Windows Explorer instead (ie. when you tell it to enable the content in
Word 2007 this way, the autorun macro appears).
The autorun macro appears below:
Public Sub MAIN()
ActiveDocument.ShowGrammaticalErrors = True
ActiveDocument.ShowSpellingErrors = True
ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
ActiveWindow.ActivePane.View.ShowAll = False
ActiveWindow.View.ShowFieldCodes = False
Load frmContractInput
frmContractInput.Show
End Sub
Any ideas how we can get it to work from within Word 2007?
Kind regards
JD2