Does anybody know how I report a bug in Word/VBA to Microsoft?

M

Mark Settle

I've been hunting everywhere for a link, or some way to
email a bug report to them, will little luck. Anyone know?

Thanks in advance.
 
J

Jezebel

posting here is a good start. If it's a known bug someone here will
recognise it, and if you've discovered a new one, people here would dearly
love to hear about it.
 
M

Mark Settle

Well, here you go. I work on a software development team
with a product that uses Word macros for some
integration, and we ran into this problem. It's a small
problem for us because the case is really uncommon, but
does appear to be a bug in Word, but I couldn't find any
info on it online. Here's what you have to do:

1. Open a new Word Document.
2. Type (c) and let it be replaced by © by Word (this is
in the autocorrect as you type options by default).
3. Run a macro with the following code:

Sub CrashMe()
Dim rng As Range
Set rng = ActiveDocument.Range(Selection.Start,
Selection.End)
With rng.Find
.Text = "©"
.Forward = False
.Execute
End With
ActiveDocument.Close wdDoNotSaveChanges
End Sub

Error: Word crashes. It appears that this has to be done
with a range object and the .Forward propery of the Find
object has to be set to false. It doesn't crash if you
use a Selection object to do the find.
 
J

Jezebel

Well I guess it's bug by definition if Word crashes, but I can't reproduce
it. (Word 2000).
Presumably there's more to your original code, since that macro doesn't
actually do anything. Are you saying Word doesn't crash if you use some
symbol other than (c) ?

Well, here you go. I work on a software development team
with a product that uses Word macros for some
integration, and we ran into this problem. It's a small
problem for us because the case is really uncommon, but
does appear to be a bug in Word, but I couldn't find any
info on it online. Here's what you have to do:

1. Open a new Word Document.
2. Type (c) and let it be replaced by © by Word (this is
in the autocorrect as you type options by default).
3. Run a macro with the following code:

Sub CrashMe()
Dim rng As Range
Set rng = ActiveDocument.Range(Selection.Start,
Selection.End)
With rng.Find
.Text = "©"
.Forward = False
.Execute
End With
ActiveDocument.Close wdDoNotSaveChanges
End Sub

Error: Word crashes. It appears that this has to be done
with a range object and the .Forward propery of the Find
object has to be set to false. It doesn't crash if you
use a Selection object to do the find.
 
H

Howard Kaikow

I see the same behavior in Word 2003.

I would consider this to be a Word bug, because Word should better handle
such conditions.
 

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