+ Reply to Thread
Results 1 to 5 of 5

Set Range Application-Based Error

  1. #1
    Forum Contributor
    Join Date
    07-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    109

    Set Range Application-Based Error

    I can't seem to figure out why I'm getting an object-based or application-based error for the following code:

    Please Login or Register  to view this content.
    The error appears on the "Set copydepartures" range declaration. Please help!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Set Range Application-Based Error

    Hi, aloha,

    maybe try

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    07-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Set Range Application-Based Error

    That fixed that issue, thank you. But now, I am receiving a "Mismatch" error for this line:

    Please Login or Register  to view this content.
    Each cell only contains a text string and cell is dimensioned as a range

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Set Range Application-Based Error

    Hi, aloha31,

    you would need to repeat cell.Value for each string, maybe itīs better to use a Select Case here:
    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Forum Contributor
    Join Date
    07-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Set Range Application-Based Error

    Worked perfectly. Thank you for your help.

+ 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. Why am I getting an application-based/object-based error?
    By aloha31 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2013, 05:51 PM
  2. [SOLVED] Error 1004: Application-defined or object-defined error on Range(Cells(x,y)) syntax
    By winch in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2013, 11:02 AM
  3. Application Defined Error When Trying to Copy a Range
    By BigBas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2009, 08:51 PM
  4. [SOLVED] Application-defined or object-defined error (worksheet, range, sel
    By darxoul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-02-2006, 09:05 AM
  5. Replies: 3
    Last Post: 07-24-2006, 08:20 PM

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