Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding "last cell"
Hi all,
How does one find the last row, column or cell in a sheet or range? I'm currently working with automating Excel 2000. TIA, John |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding "last cell"
Hi John,
You could try the code below, amending options as necessary ChDir "<<DirPath" Workbooks.OpenText Filename:= _ "FilePath", Origin:= _ xlMSDOS, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote _ , ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:=True _ , Space:=False, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2, 1)), _ TrailingMinusNumbers:=True Hope this helps Warm regards Sunil Jayakumar "John Spiegel" wrote in message ... Hi all, How does one find the last row, column or cell in a sheet or range? I'm currently working with automating Excel 2000. TIA, John www.ayyoo.com/credit-cards.html |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding "last cell"
sheets("Sheet1").range("A65535").end(xlUp).select
This code selects the last populated cell in column A on sheet 1. There are a bunch of variations of this code which all do the same thing. HTH "John Spiegel" wrote: Hi all, How does one find the last row, column or cell in a sheet or range? I'm currently working with automating Excel 2000. TIA, John |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Finding "last cell"
Thanks, both. I think that's what I needed!
"John Spiegel" wrote in message ... Hi all, How does one find the last row, column or cell in a sheet or range? I'm currently working with automating Excel 2000. TIA, John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Excel Error :- "Too Many Cell Formats"...is there a way of finding | Excel Discussion (Misc queries) | |||
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! | Excel Discussion (Misc queries) | |||
Finding cell that returns bad "solver_val" function. | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |