Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    why error 91..... (2000)

    why error 91... in MIO_RANGE = Sheets("STAT_NEW_1").RANGE("A5:AF" & ULTIMA).????
    ........
    Dim ULTIMA As Long
    Dim MIO_RANGE As RANGE
    ULTIMA = Sheets("STAT_NEW_1").RANGE("AF" & Rows.Count).End(xlUp).Row
    MIO_RANGE = Sheets("STAT_NEW_1").RANGE("A5:AF" & ULTIMA)
    ...........

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: why error 91..... (2000)

    MIO_RANGE is an object variable. You must always use Set to assign a value to an object variable:

    Set MIO_RANGE = ...

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: why error 91..... (2000)

    Sorry me i'm stupid!
    Tks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •