+ Reply to Thread
Results 1 to 8 of 8

Run-time error '91' Object variable or With block variable not set

  1. #1
    Registered User
    Join Date
    08-02-2016
    Location
    Sandefjord, Norway
    MS-Off Ver
    Office 365 Business
    Posts
    30

    Run-time error '91' Object variable or With block variable not set

    Anyone know the solution to this problem?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Run-time error '91' Object variable or With block variable not set

    What are you trying to accomplish?

  3. #3
    Registered User
    Join Date
    08-02-2016
    Location
    Sandefjord, Norway
    MS-Off Ver
    Office 365 Business
    Posts
    30

    Re: Run-time error '91' Object variable or With block variable not set

    I am trying to remove non-compatible symbols in the cells before saving the file. The cell C1:D1 is merged, so I think it might has to do something with that.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run-time error '91' Object variable or With block variable not set

    Why are you using Find?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    08-02-2016
    Location
    Sandefjord, Norway
    MS-Off Ver
    Office 365 Business
    Posts
    30

    Re: Run-time error '91' Object variable or With block variable not set

    I was unable to get it to work with a formula like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    so I recorded a macro with CTRL+H to get rid of the symbols. If there is any other way to do this I would appreciate any solutions!

    I want to do the the following changes:
    Remove C1 value: "Subject:" but let the rest of the cell value that follows to remain untouched.
    Change D2 value: "No: 0.1" TO "Part-0-Test-1" and the 0 and 1 needs to be untouched.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Run-time error '91' Object variable or With block variable not set

    Does this help?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-02-2016
    Location
    Sandefjord, Norway
    MS-Off Ver
    Office 365 Business
    Posts
    30

    Re: Run-time error '91' Object variable or With block variable not set

    Worked like a charm! Thank you very much JOHN H. DAVIS!

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Run-time error '91' Object variable or With block variable not set

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. [SOLVED] Getting run-time error 91 object variable or with block variable not set
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2016, 09:46 PM
  2. [SOLVED] Run-time error '91': Object variable or With block variable not set when closing userform
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2016, 08:59 AM
  3. VBA Run-time error ‘91’: Object variable or With block variable not set
    By The Enthusiast in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-24-2014, 02:38 PM
  4. Replies: 0
    Last Post: 04-16-2013, 07:15 AM
  5. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  6. Replies: 1
    Last Post: 09-25-2012, 08:03 PM
  7. [SOLVED] Intermittent Run-time Error 91: Object Variable or With Block variable not set
    By fraanchtoast in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-29-2012, 10:11 AM

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