Hai guys
I am having a filtered range say a3:a30
after filtering my cells will look like below
A B
a5 1
a8. 4
a9 3
a20 2
a24 1
a25 1
what i want is when i click/select a cell in the filtered column A,on the basis of value in colomn B
the number of cells below the selected cell including the active cell should get selected.
Example when i click a8 cell,a8,a9,a20,a24 have to be selected,here four cells are selected bcoz the corresponding value in b8 cell is 4.
when i use the method below
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
if target .column= 2 then
activecell.select
Range(selection,selection.cells(activecells.offset(0,1).value,0).specialcells(XlcellTypeVisible).select
end if
Exit subit selects invisible cells also a8,a9,a10,a11Please Login or Register to view this content.
Can any one help to solve this issue
Bookmarks