+ Reply to Thread
Results 1 to 3 of 3

Error 91

  1. #1
    Registered User
    Join Date
    05-24-2010
    Location
    lONDON
    MS-Off Ver
    Excel 2007
    Posts
    7

    Error 91

    Hi, I am having an issue with the following piece of code.

    File location has recently changed from "T:\crystal_reports\General\Oracle_Web_Trading_Reports\"
    to "T:\crystal_reports\General\Oracle_Web_Trading_Reports\Open Position Client Count (Daily)"

    I have updated the code accordingly, however I am now getting an error (91 Object variable or With block variable not set) when the macro gets to "wbOpen.Close False".

    until the file location was changed this did not happen.

    Your help is much appreciated.

    thanks

    Ben




    Please Login or Register  to view this content.
    Last edited by plunkettyplunk; 06-14-2010 at 03:56 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: Error 91 mystery

    Try adding a backslash to the path name, and drop the asterix from the file extention
    Please Login or Register  to view this content.
    Put a break on this line
    Please Login or Register  to view this content.
    Check the full name in the immediate pane.

    Please Login or Register  to view this content.
    If it is not correct adjust as is required.

    Hope this helps.

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
    Last edited by Marcol; 06-11-2010 at 05:08 AM.

  3. #3
    Registered User
    Join Date
    05-24-2010
    Location
    lONDON
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Error 91 mystery

    Of course... thanks.

+ 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