Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding the last cell with content
I've searched and found a few posts that come close, but
didn't really hit what I'm trying to do. I'm having problems determining my range in a macro. I'm running an equation L=(K-J)/K. I want my range to be K2 thru (the last cell in K that has a value) Can anyone help me determine the code? Thanks for your help. Lonnie |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
finding the last cell with content
I'm having problems determining my range in a macro. I'm
running an equation L=(K-J)/K. I want my range to be K2 thru (the last cell in K that has a value) Can anyone help me determine the code? iRow = Sheets("Sheet1").Range("K65536").End(xlUp).Row Set rng = Sheets("Sheet1").Range("K2:K" & iRow) HTH, Merjet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy comment content to cell content as data not as comment | Excel Discussion (Misc queries) | |||
How make hyperlink refer to cell content rather than cell address. | Excel Discussion (Misc queries) | |||
Conditional cell background formatting, based on cell content | Excel Discussion (Misc queries) | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) |