Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Way to make range the whole spreadsheet
I'm working on VS 2005 with Excel 2003. I need to set the range for the
entire sheet, but I do not know the number of rows in use for the spreadsheet. I tried this: oRng = oSheet.Range("A1").EntireColumn TotRows = oRng.Count TotRows ended up 65,5xx. Not useful. I really don't need to set a range, I just need to know how many rows are being used. I need to programmatically scan down the first column to see if a particular string is there and if it is go process the next 5 rows or so. To do this, I need the total number of rows in use. Shoulod I just give up and search all 65K rows? Does anyone know how to do this? -- Bettie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I make a list from a spreadsheet? | Excel Discussion (Misc queries) | |||
How can I make the top row of my spreadsheet non-scrollable? | Excel Discussion (Misc queries) | |||
I cant make entries in my spreadsheet | Excel Discussion (Misc queries) | |||
make a spreadsheet | Excel Discussion (Misc queries) | |||
make my spreadsheet at 10% to all cells | Excel Worksheet Functions |