ThrottleWorks
Excel Ninja
Hi,
I want to get value of first visible cell from a filtered range.
For example, first visible row in a filtered range is 15, then my result should be BK15.
Below mentioned code works only if there are no multiple results and visible row number is not 2.
MyAmt =Range("BK2:BK" & Cells(Rows.Count, "BK").End(xlUp).Row).SpecialCells(xlCellTypeVisible).cells
This is the reason, I am using below mentioned code for time being.
Range("BK2:BK" & Cells(Rows.Count, "BK").End(xlUp).Row).SpecialCells(xlCellTypeVisible).Select
MyAmt = ActiveCell.Value
However, can anyone please help me with better / fool proof solution.
I want to get value of first visible cell from a filtered range.
For example, first visible row in a filtered range is 15, then my result should be BK15.
Below mentioned code works only if there are no multiple results and visible row number is not 2.
MyAmt =Range("BK2:BK" & Cells(Rows.Count, "BK").End(xlUp).Row).SpecialCells(xlCellTypeVisible).cells
This is the reason, I am using below mentioned code for time being.
Range("BK2:BK" & Cells(Rows.Count, "BK").End(xlUp).Row).SpecialCells(xlCellTypeVisible).Select
MyAmt = ActiveCell.Value
However, can anyone please help me with better / fool proof solution.