+ Reply to Thread
Results 1 to 3 of 3

Highlighting Multiple Selections That Don't Beging With an Error

  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Highlighting Multiple Selections That Don't Beging With an Error

    So new to writing macros, but I have a few years of C++ experiance floating around from a while ago. The code below seems perfectly fine to me, but for some reason, my range ends up being every row, even if the first cell is an error.

    Also I get a error on the line "Range(Rng).Select": Run-time error '1004': Method 'Range' of object'_Global' failed.

    Thanks for any help!

    Please Login or Register  to view this content.
    Last edited by Pherion; 07-09-2009 at 11:43 AM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Highlighting Multiple Selections That Don't Beging With an Error

    Hi Pherion,

    Try changing (CurrentRange) to (Range(CurrentRange))

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Highlighting Multiple Selections That Don't Beging With an Error

    Worked Perfectly!!! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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