About 182,000 results
Open links in new tab
  1. VBA Macro: run-time error 91 - Object Variable or With Block …

    May 26, 2021 · Use the debugger to see the different outcome when using SET and when missing it. Use "option explicit" to enforce you to think about what type of objects you are handling as …

  2. EXCEL VBA - RUN TIME ERROR '91': OBJECT VARIABLE OR WITH …

    Jan 26, 2021 · EXCEL VBA - RUN TIME ERROR '91': OBJECT VARIABLE OR WITH BLOCK VARIABLE NOT SET Excel (Version 16.45 [microsoft 365]) macOS Big Sur Hi Geniuses! I'm …

  3. Excel VBA Execution Error '91': Object variable not set

    Apr 29, 2025 · In its current state, the code seems to break when an "X" is encountered, with the message "Run-time error '91': Object variable or With block variable not set", at this specific line:

  4. Excel VBA Object Variable or With Block Variable Not Set Error

    Feb 4, 2025 · Excel VBA Object Variable or With Block Variable Not Set Error BeachDog_2600 Feb 19, 2025 B

  5. Object Variable or With Block Variable Not Set Error

    Oct 27, 2013 · Could someone please tell me why I get an "object variable or with block variable not set" error when I run this code? Note: I do not get an error on first run of line.

  6. VBA Error (but only on one sheet): Object variable or With block ...

    Jan 13, 2021 · VBA Error (but only on one sheet): Object variable or With block variable not set I'm using Excel in Microsoft Office 365 on Windows 10.

  7. runtime error 91: object variable or with block variable not set

    Mar 28, 2024 · I had to additionally work with add rows and columns instead of my initial try. it seems to work fine now no matter what situation it starts with and the table no longer claims to …

  8. Cells.Find in VBA. Run-time error '91': Object variable or With …

    Dec 27, 2016 · The macro works fine in that it finds and deletes all the lines but at the end, when it can't find another occurrence of the variable, it comes up with the error message: Run-time …

  9. VBA troubleshooting: "Object variable or With block variable not …

    Oct 9, 2017 · VBA troubleshooting: "Object variable or With block variable not set" How do I fix this?

  10. "Run-time error '91': Object variable or With block variable not set ...

    Nov 22, 2011 · Set the wb object as before, but then try to Set the sht object to Worksheets (1). Or use the other syntax as I've suggested. I still don't know if the reference is a chart or not …