M
Mo
Hi,
In Windows7 and Word2007 (vba version 6.5.1020) I have a problem with code
that runs fine on Windows XP and Word2007(vba version 6.5.1543) .
The following code sits in a template:
Sub Test()
Dim x As Boolean
x = False
Application.Run "Change", x
MsgBox x
End Sub
And the following code sits let's say in normal.dot:
Sub change(bprotect As Boolean)
bprotect = Not bprotect
End Sub
If I run the "Test"-macro the result in Windows XP is a msgbox that shows
"True" and in Windows7 the msgbox shows "False". In the latter case it
doesn't pass the variables changed value.
What could cause this?
Thanks
Peeter
In Windows7 and Word2007 (vba version 6.5.1020) I have a problem with code
that runs fine on Windows XP and Word2007(vba version 6.5.1543) .
The following code sits in a template:
Sub Test()
Dim x As Boolean
x = False
Application.Run "Change", x
MsgBox x
End Sub
And the following code sits let's say in normal.dot:
Sub change(bprotect As Boolean)
bprotect = Not bprotect
End Sub
If I run the "Test"-macro the result in Windows XP is a msgbox that shows
"True" and in Windows7 the msgbox shows "False". In the latter case it
doesn't pass the variables changed value.
What could cause this?
Thanks
Peeter