Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default 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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return Maximum from Column directly above Maximum in Row Code Numpty Charts and Charting in Excel 2 November 19th 08 07:29 AM
Maximum Value in Column nastech Excel Discussion (Misc queries) 9 March 21st 06 11:38 AM
Maximum Value in column nastech Excel Discussion (Misc queries) 5 March 21st 06 04:40 AM
Maximum Value in column nastech Excel Discussion (Misc queries) 0 March 21st 06 12:01 AM
find which column has the maximum value Frank Drost Excel Discussion (Misc queries) 2 December 15th 05 01:09 AM


All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"