ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is there a way to determinie the maximum row and column used? (https://www.excelbanter.com/excel-programming/315367-there-way-determinie-maximum-row-column-used.html)

Peter[_44_]

Is there a way to determinie the maximum row and column used?
 

Hi,
I have an application that updates a large number of cells.

Updating the cells one by one is very slow, so instead I would like to use
an array. However, my cells are not necessarily consecutive (rows and
columns) and there may be other values that my app does not set that I
cannot change.

I figure that my best option might be to copy a range of cells beginning
with 1,1 down to the last used cell (ie. max row and mx column) into my
array, update only the cells that I am interested in, then update the range
again from the updated array.

Firstly, can anyone think of better way and if not how can I determine the
last used cell?

Cheers,
Peter.



Rob van Gelder[_4_]

Is there a way to determinie the maximum row and column used?
 
I have a last cell (col / row) example on my website

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Peter" wrote in message
...

Hi,
I have an application that updates a large number of cells.

Updating the cells one by one is very slow, so instead I would like to use
an array. However, my cells are not necessarily consecutive (rows and
columns) and there may be other values that my app does not set that I
cannot change.

I figure that my best option might be to copy a range of cells beginning
with 1,1 down to the last used cell (ie. max row and mx column) into my
array, update only the cells that I am interested in, then update the
range
again from the updated array.

Firstly, can anyone think of better way and if not how can I determine
the
last used cell?

Cheers,
Peter.






All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com