Greetings,
We are using Office 97 and Office 2003 at work...
The macro I wrote in 2003 works, but when I took it back to 97 it didn't, it seems to have the problem in the section with the bookmark.
The macro returns a value from a bookmark called VisitorName. The Bookmark is the property of a field in a protected form.
A button on the word form runs the macro to call outlook and create a message attaching the word form and filling in the subject, the problem is... my user wants the visitors name from the form to be in the subject line too.
That is the form field named VisitorName.
Here is my section of code...
If ActiveDocument.Bookmarks.Exists("VisitorName") = True Then
ActiveDocument.Bookmarks("VisitorName").Select
vName = Selection.Text
End If
The next part adds the VName variable to the outlook subject line.
This code works in 2003 but not 97. The variable is empty in 97..
I am going crazy...
Can you help?
Thanks
Sdeen
We are using Office 97 and Office 2003 at work...
The macro I wrote in 2003 works, but when I took it back to 97 it didn't, it seems to have the problem in the section with the bookmark.
The macro returns a value from a bookmark called VisitorName. The Bookmark is the property of a field in a protected form.
A button on the word form runs the macro to call outlook and create a message attaching the word form and filling in the subject, the problem is... my user wants the visitors name from the form to be in the subject line too.
That is the form field named VisitorName.
Here is my section of code...
If ActiveDocument.Bookmarks.Exists("VisitorName") = True Then
ActiveDocument.Bookmarks("VisitorName").Select
vName = Selection.Text
End If
The next part adds the VName variable to the outlook subject line.
This code works in 2003 but not 97. The variable is empty in 97..
I am going crazy...
Can you help?
Thanks
Sdeen