+ Reply to Thread
Results 1 to 4 of 4

confused about runtime error

  1. #1
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    confused about runtime error

    I have this piece of code
    Please Login or Register  to view this content.
    ar and val both return numeric values but the last string of my code returns "run-time error '1004': Application-defined or object-defined error.

    Any ideeas? tnx.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: confused about runtime error

    'val:ar' isn't a valid range reference, try val & ":" & ar.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: confused about runtime error

    That works great, thank you very much. If I could ask one more thing. I need a range of cells that have the same value.
    Please Login or Register  to view this content.
    this only gets me the first value. How could i get all of them?

  4. #4
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: confused about runtime error

    figured it out ty.

+ 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. [SOLVED] OBJECT REQUIRED ERROR! -confused at which line
    By star18 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-31-2013, 02:32 AM
  2. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  3. Replies: 1
    Last Post: 10-03-2012, 10:32 PM
  4. [SOLVED] Macro executes but not giving results :confused::confused::confused:
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 10:49 AM
  5. Excel xmlHTTP object error message - system/runtime error
    By Porky2007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2007, 09:36 AM

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