Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Nov 2003
    Location
    Christchurch, Canterbury
    Posts
    122
    Thanks
    27
    Thanked 1 Time in 1 Post

    'file not found' with OrganizerCopy (Word 2002)

    We have code that switches numbering styles using OrganizerCopy ie:

    Sub CopyStyles()
    Application.OrganizerCopy Source:=strSourceDoc, _
    Destination:=strDestinationDoc, _
    Name:=strStyleName, Object:=wdOrganizerObjectStyles
    End Sub

    Every now & then it gives a "file not found". I've checked all the variables and they are correct. The numberingStyle.dot exists - in the right directory. Same PC, same session it will start working and stay working.

    Any ideas?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: 'file not found' with OrganizerCopy (Word 2002

    Any way you can think of to rule out a problem with strDestination?

  3. #3
    2 Star Lounger
    Join Date
    Nov 2003
    Location
    Christchurch, Canterbury
    Posts
    122
    Thanks
    27
    Thanked 1 Time in 1 Post

    Re: 'file not found' with OrganizerCopy (Word 2002

    Before CopyStyles is called:
    strDestinationDoc = ActiveDocument.Name

    The few times I've been on hand when the error comes up strDestinationDoc seems to be right <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •