+ Reply to Thread
Results 1 to 3 of 3

VB - Highlight a selection of cells

  1. #1
    Forum Contributor
    Join Date
    08-06-2007
    Posts
    105

    VB - Highlight a selection of cells

    Can someone help me with a VB code that will find the last active cell in column "A" and then highlight accross in that particular row A:S (But only highlight the last active row)

    Light gray (25%)

    Thanks,

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,662

    re: VB - Highlight a selection of cells

    Don't know what your sheet looks like; but, an alternative is to use Conditional Formatting. Select the entire columns A to S and enter the formula:
    Please Login or Register  to view this content.
    Then apply your particular format.
    Ben Van Johnson

  3. #3
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: VB - Highlight a selection of cells

    In VB:

    Please Login or Register  to view this content.
    Change the Sheet to be whichever one you want.

    Regards
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ 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