+ Reply to Thread
Results 1 to 6 of 6

Run time Error 9 - Specific Code Issue

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Run time Error 9 - Specific Code Issue

    The following code works when I have both the "controls 1" and "main file" open on my PC but these are to be shared workbooks on a common network drive. My code errors out when it gets to the second line (Windows("Main File.xls").Activate) because I don't think I am telling it exactly where to look (ie the proper directory).

    Would that make sense? How would I tell it what directory to do to? Or, do you think it's something else?

    Please Login or Register  to view this content.
    Last edited by dreicer_Jarr; 03-02-2010 at 11:57 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Run time Error 9 - Specific Code Issue

    Try adding the full path name
    eg
    Please Login or Register  to view this content.
    Last edited by Marcol; 03-02-2010 at 12:34 PM.

  3. #3
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Run time Error 9 - Specific Code Issue

    Thanks a lot, but I still get the same error on the same line. I checked the path name three times. Urgg!!

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Run time Error 9 - Specific Code Issue

    If you want to open the file
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Run time Error 9 - Specific Code Issue

    The Workbook is open but it's open on another PC. Does that change things?

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Run time Error 9 - Specific Code Issue

    Indeed it does!

    I'm not to hot on working over networks but I suspect that that file will be locked by that user. and you will not be able to access it.

    There is a way to setup for multiple user access but I don't know how to do it. Sorry.

    It is in my limited experience better to have sole access to files that need updating/archiving etc.

    Regards
    Alistair

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1