EDN Admin
Well-known member
<p align=left><font face=Arial size=2></font>
Hi,
<p align=left>
<p align=left>Im having a weird problem with word. My application is installed on many PCs and works fine on most of them, including my own. I have a few users though, when the application creates a word document it completly crashes and I get the standard windows error window asking if i want to send this error.
<p align=left>
<p align=left>All the users have Office 2003 and for those who have a problem Ive been able to determine that is crashes on the highlighted code.
<p align=left> <font size=2>
wdApp.Selection.Find.ClearFormatting()
<font style="background-color:#ff0000 wdApp.Selection.Find.Replacement.ClearFormatting()</font>
</font><font color="#0000ff" size=2>With</font><font size=2> wdApp.Selection.Find
.Text = </font><font color="#800000" size=2>"DEFAULTDATE" </font><font size=2>
.Replacement.Text = </font><font color="#800000" size=2>""</font><font size=2> & sdate & </font><font color="#800000" size=2>"" </font><font size=2>
.Wrap = WdFindWrap.wdFindContinue
</font><font color="#0000ff" size=2>End</font><font size=2> </font><font color="#0000ff" size=2>With </font><font size=2>
wdApp.Selection.Find.Execute(Replace:=WdReplace.wdReplaceAll)
<p align=left>
<p align=left>Have any other people had this problem. What can I do to try and determine what is causing it.
<p align=left>
<p align=left>thanks for your help,
<p align=left>
<p align=left>Chris </font>
<p align=left>
<p align=left>
View the full article
Hi,
<p align=left>
<p align=left>Im having a weird problem with word. My application is installed on many PCs and works fine on most of them, including my own. I have a few users though, when the application creates a word document it completly crashes and I get the standard windows error window asking if i want to send this error.
<p align=left>
<p align=left>All the users have Office 2003 and for those who have a problem Ive been able to determine that is crashes on the highlighted code.
<p align=left> <font size=2>
wdApp.Selection.Find.ClearFormatting()
<font style="background-color:#ff0000 wdApp.Selection.Find.Replacement.ClearFormatting()</font>
</font><font color="#0000ff" size=2>With</font><font size=2> wdApp.Selection.Find
.Text = </font><font color="#800000" size=2>"DEFAULTDATE" </font><font size=2>
.Replacement.Text = </font><font color="#800000" size=2>""</font><font size=2> & sdate & </font><font color="#800000" size=2>"" </font><font size=2>
.Wrap = WdFindWrap.wdFindContinue
</font><font color="#0000ff" size=2>End</font><font size=2> </font><font color="#0000ff" size=2>With </font><font size=2>
wdApp.Selection.Find.Execute(Replace:=WdReplace.wdReplaceAll)
<p align=left>
<p align=left>Have any other people had this problem. What can I do to try and determine what is causing it.
<p align=left>
<p align=left>thanks for your help,
<p align=left>
<p align=left>Chris </font>
<p align=left>
<p align=left>
View the full article