Posted to microsoft.public.excel.programming
|
|
Bypas Nil Values
many thanks. the macro works but
it has selected a column at random where it finds the last positive value
evry time. how do i specify the column where i want the avtivity to happen?
Pardon my ignorance.
"Don Guillett" wrote:
One way
Sub gotolastpostitivevalue()
mc = "f"
For i = Cells(Rows.Count, mc).End(xlUp).Row To 2 Step -1
If Cells(i, mc) 0 Then
Cells(i, mc).Select
Exit Sub
End If
Next i
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"a m spock" wrote in message
...
the data in the computed column on sales completed is something like this.
the data is dynamic and changes as each transaction is added to the
workshet.
i need a macro which will, starting from anywhere on the worksheet take
the
cursor to the cell with the last positive value i.e. 800,000
Trades Completed
0
200,000
1,000
1,000,000
0
0
0
0
800,000
0
0
0
|