+ Reply to Thread
Results 1 to 2 of 2

selecting a dynamic range

  1. #1
    Alan M
    Guest

    selecting a dynamic range

    Hi I have a spreadsheet in which one column speficies the days in the year.
    The adjacent columns then contain recorded data. On selection of this sheet
    the cell adjacent to today's date is selected.

    I need code to highlight data the range from F7 to w7 and down to the row
    above the active cell.
    I.E. All data which is ' in the past'

    The problem I have is that the active cell row changes daily and so the size
    of the required range changes as well.

  2. #2
    Karthik Bhat - Bangalore
    Guest

    Re: selecting a dynamic range

    Hi Alan

    This code will do the job

    Sub SelectData()
    Row = ActiveCell.Row - 1
    Range(Cells(7, 6), Cells(Row, 23)).Select
    End Sub


    Thanks
    Karthik Bhat


+ 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