+ Reply to Thread
Results 1 to 4 of 4

Run time error 91 object variable or with block variable not set

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Run time error 91 object variable or with block variable not set

    Please help to resolve this error in the below code.

    Iam getting error in Set MyRange

    Please Login or Register  to view this content.
    Last edited by Nirakshana; 03-24-2014 at 01:05 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Run time error 91 object variable or with block variable not set

    maybe Data sheet does not exist, can you attach a sample file ?
    If solved remember to mark Thread as solved

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Run time error 91 object variable or with block variable not set

    This line appears to be wrong

    Please Login or Register  to view this content.
    Do you have a named range?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Run time error 91 object variable or with block variable not set

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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: 0
    Last Post: 04-16-2013, 07:15 AM
  2. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  3. Replies: 1
    Last Post: 09-25-2012, 08:03 PM
  4. [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
  5. [SOLVED] Run-time error '91': Object variable or With block variable.
    By Nicholas1978 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-04-2012, 04:03 PM

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