Word crash when adding comment from macro

M

Mihai

Hi,
I am experiencing a crash with Microsoft Word 2007 SP2.

I have following document : http://dl.dropbox.com/u/3081560/Report.doc
I am running following macro :

Sub Macro1()
'
' Macro1 Macro
'
Selection.SetRange Start:=ActiveDocument.Content.End,
End:=ActiveDocument.Content.End - 14

ActiveDocument.Comments.Add Range:=Selection.Range, Text:="3333"

End Sub

If i run the above macro on Word 2007 before SP2 it works fine. If i run it
just after SP2 Word crashes with following screenshot :
http://dl.dropbox.com/u/3081560/Test Machine XP-2010-06-02-13-24-36.png

Are there any work around to this problem ? You can reproduce this problem
with the above document.

Br,
Mihai
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top