Results 1 to 4 of 4

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

Threaded View

  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

    Dim MySheet As Worksheet
    Dim MyRange As Range
    Dim UList As Collection
    Dim UListValue As Variant
    Dim i As Long
    
    
    
    Set MySheet = Worksheets("Data")
    
    Set MyRange = Range(MySheet.AutoFilter.Range.Columns(2).Address)
    Last edited by Nirakshana; 03-24-2014 at 01:05 PM.

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