|
-
Oct 21st, 2004, 08:00 AM
#1
Thread Starter
Frenzied Member
Object does not support..
The code below is in a module that creates a Word doc in Access. The first line throws an error "Object does not support this action" on my machine and on a machine that had an Office 2000 re-install. I've checked the references on machines that it works on and machines it doesn't, and they're the same. Any idea how to get it to work on all? Thanks.
VB Code:
WordObj.Selection.Find.Replacement.ClearFormatting 'error here
With WordObj.Selection.Find
.Text = " "
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
WordObj.Selection.Find.Execute Replace:=wdReplaceAll
Last edited by salvelinus; Oct 21st, 2004 at 10:20 AM.
Tengo mas preguntas que contestas
-
Oct 21st, 2004, 08:41 AM
#2
objWord.objDoc.Selection ???
Or you need a selection to start with?
You shouldn't be using hte selection object anyway unless its from a user selection befor eyou call your macro.
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Oct 21st, 2004, 10:20 AM
#3
Thread Starter
Frenzied Member
Thanks, but I didn't write the code. It'd be a major project to redo it all.
Anyway, it appears to be a service pack issue. When Access was installed yesterday, it was updated with all the service packs and updates. We did a repair today with the pre-SR1 Office 2000 cd, and the problem is - apparently - fixed.
Tengo mas preguntas que contestas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|