PDA

View Full Version : Number of messages recorded in the file



morteza2006
01-13-2014, 09:46 PM
Hello to all
I have a file and when I opened the file number and date to give me message
Thanks for all teachers

fumei
01-14-2014, 02:40 PM
What do you want to happen? The attached document does not help at all. Please explain.

morteza2006
01-14-2014, 09:37 PM
I have shown in Attachment
I got this code but does not work





Private Sub Document_Open()
MsgBox ActiveDocument.Bookmarks("regdate").Range.Text
End Sub

fumei
01-15-2014, 12:21 AM
Are you kidding me? Why are posting this?

I got this code but does not work

1. No...you do not have that at all. The code in your document is


Private Sub Document_Open()
MsgBox "number: ....."
End Sub

NOT, repeat NOT ActiveDocument.Bookmarks("regdate").Range.Text Your code is doing EXACTLY what you have told it to do.

2. oh, and there IS no bookmark regdate!!! There is one named regnum.