J
Julian Ladbury
While investigating a problem with the DocumentMapPercentWidth property in
Word 2010, I discovered that the reporting of the runtime error it throws
differs depending on whether the code executes in the ThisDocument module or
in a 'User' module. In particular, if executed from ThisDocument the error
number is omitted. As this could hamper debugging efforts, I would suggest
that the error number is included in a future release.
I have uploaded an illustrative document to
http://cid-75e3e350f569b887.skydrive.live.com/self.aspx/.Public/Word2010 Runtime Error Reporting.doc
(Note: this difference in error reporting might also be the case with other
versions of Word - I have not tried them as the particular problem I was
investigating is peculiar to 2010).
Word 2010, I discovered that the reporting of the runtime error it throws
differs depending on whether the code executes in the ThisDocument module or
in a 'User' module. In particular, if executed from ThisDocument the error
number is omitted. As this could hamper debugging efforts, I would suggest
that the error number is included in a future release.
I have uploaded an illustrative document to
http://cid-75e3e350f569b887.skydrive.live.com/self.aspx/.Public/Word2010 Runtime Error Reporting.doc
(Note: this difference in error reporting might also be the case with other
versions of Word - I have not tried them as the particular problem I was
investigating is peculiar to 2010).