Results 1 to 3 of 3

Thread: Object does not support..

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Resolved 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:
    1. WordObj.Selection.Find.Replacement.ClearFormatting  'error here
    2.     With WordObj.Selection.Find
    3.                    .Text = " "
    4.                    .Replacement.Text = " "
    5.                    .Forward = True
    6.                    .Wrap = wdFindContinue
    7.                    .Format = False
    8.                    .MatchCase = False
    9.                    .MatchWholeWord = False
    10.                    .MatchWildcards = False
    11.                    .MatchSoundsLike = False
    12.                    .MatchAllWordForms = False
    13.     End With
    14.     WordObj.Selection.Find.Execute Replace:=wdReplaceAll
    Last edited by salvelinus; Oct 21st, 2004 at 10:20 AM.
    Tengo mas preguntas que contestas

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    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

    BOFH Now, BOFH Past, Information on duplicates

    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...

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    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
  •  



Click Here to Expand Forum to Full Width