K
Kevin Porter
Hello,
I had a word document created by the person before me that has quit working.
I get the '5941' The requested member of the collection does not exist.
The one it debugs to is the PFNum option. The person that this was written
for would sometimes leave info in the form that popped up, she was instructed
then to debug and delete it manually in the program (once again before my
time). The last time this error started coming up. I honestly do not even no
were to look.
It is supposed to pop up a form that you fill in then it fills in the
letter. Any help would be appreciated. It seems odd it just stops on that
one. If I comment it off then I get the same error for the frmMain at the
bottom.
Private Sub Document_New()
frmMain.Show
End Sub
Private Sub Document_Open()
With ThisDocument
.Bookmarks("Name").Range.Text = ""
.Bookmarks("Address").Range.Text = ""
.Bookmarks("CSZ").Range.Text = ""
.Bookmarks("EffDates").Range.Text = ""
.Bookmarks("Agent1").Range.Text = ""
.Bookmarks("Agent2").Range.Text = ""
.Bookmarks("PFNum").Range.Text = ""
.Bookmarks("PolicyNum").Range.Text = ""
.Bookmarks("CheckNum").Range.Text = ""
End With
frmMain.Show
End Sub
Thanks,
Kevin
I had a word document created by the person before me that has quit working.
I get the '5941' The requested member of the collection does not exist.
The one it debugs to is the PFNum option. The person that this was written
for would sometimes leave info in the form that popped up, she was instructed
then to debug and delete it manually in the program (once again before my
time). The last time this error started coming up. I honestly do not even no
were to look.
It is supposed to pop up a form that you fill in then it fills in the
letter. Any help would be appreciated. It seems odd it just stops on that
one. If I comment it off then I get the same error for the frmMain at the
bottom.
Private Sub Document_New()
frmMain.Show
End Sub
Private Sub Document_Open()
With ThisDocument
.Bookmarks("Name").Range.Text = ""
.Bookmarks("Address").Range.Text = ""
.Bookmarks("CSZ").Range.Text = ""
.Bookmarks("EffDates").Range.Text = ""
.Bookmarks("Agent1").Range.Text = ""
.Bookmarks("Agent2").Range.Text = ""
.Bookmarks("PFNum").Range.Text = ""
.Bookmarks("PolicyNum").Range.Text = ""
.Bookmarks("CheckNum").Range.Text = ""
End With
frmMain.Show
End Sub
Thanks,
Kevin