PC Review


Reply
Thread Tools Rate Thread

This code crashes on one but not all machines? Any ideas?

 
 
akh2103
Guest
Posts: n/a
 
      26th Jan 2007
Hello--the following code is attached to a userform that has been
distributed to many machines as an Excel add-in. It works on all
machines except for one. I indicate which line causes the crash below.
I have installed Service Pack 3 on the new machine, but the code is
still not running properly. Does anybody have any suggestions? Any help
would be appreciated.

Dim wdapp As Word.Application
Dim wddoc As Word.Document
Dim wdtable As Word.Table

Set wdapp = GetObject(, "Word.Application")
Set wddoc = wdapp.ActiveDocument
Set wdtable = ActiveDocument.Tables(1)

wddoc.Select
wdapp.Selection.find.ClearFormatting

With wdapp.Selection.find
.Text = FrmSeriesTables.TextBox1.Text <---CODE CRASHES AFTER THIS
LINE IS EXECUTED

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need ideas deploying to 50 machines Doug Windows XP Setup 7 15th Jan 2006 11:30 PM
US vs UK datetime/string format failing on certain machines. Ideas =?Utf-8?B?YWRvbGYgZ2FybGlj?= Microsoft ASP .NET 1 18th Nov 2004 03:53 PM
LSASS.exe crashes all machines!!!!!!!!!! Jim Kiddoo Microsoft Windows 2000 1 30th Apr 2004 02:06 AM
Server.MapPath() works differently on 2 different machines, ideas? Peter Row Microsoft ASP .NET 0 23rd Feb 2004 01:47 PM
IE 6.0 crashes with a java problem - any ideas how to fix? Windows XP Internet Explorer 1 31st Jan 2004 08:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:55 PM.