+ Reply to Thread
Results 1 to 2 of 2

Advanced Excel - Object variable or With block variable not set (Error 91)??

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Unhappy Advanced Excel - Object variable or With block variable not set (Error 91)??

    Hi All,

    I've been running this section of code without any problems for the past three months. Today, for the first time ever, Object variable or With block variable not set (Error 91)?

    Please Login or Register  to view this content.
    The code stopped running at:

    Please Login or Register  to view this content.
    Any ideas how to fix?

    Thanks!

    L

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Advanced Excel - Object variable or With block variable not set (Error 91)??

    Hi Larry,

    Thanks for sharing a variation of Ron de Bruin's zip/unzip VBA code. He does awesome stuff. For anyone else who is interested:
    Zip: http://www.rondebruin.nl/win/s7/win001.htm
    UnZip: http://www.rondebruin.nl/win/s7/win002.htm

    I think you may have bad input.

    When I use your code exactly as is and the contents of cell A3 is xxxx.zip I get the same runtime error as you.

    When the contents of A3 contains a path, then the code works for me e.g. C:\Users\Owner\Documents\xxxx.zip

    I also get runtime error 91 when the value of strTargetPath is a path that does not exist.

    Lewis
    Last edited by LJMetzger; 12-19-2014 at 01:44 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 08-22-2014, 03:55 AM
  2. [SOLVED] Excel VBA error code 91: Object variable or with block variable not set
    By wilnexpc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2013, 11:46 AM
  3. Replies: 0
    Last Post: 04-16-2013, 07:15 AM
  4. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  5. Object variable or With block variable not set" error message
    By JoeS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2009, 11:51 AM

Tags for this Thread

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