Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tonto
 
Posts: n/a
Default Excel 2003: In a Macro,how to select a variable row length table

I wish to create a macro that will perform functions upon multiple rows of
data. The number of rows of data will change every time.

Problem : I create a macro by recording. I select rows of data using
CTRL/down arrow on the last column and then selecting back to the first
column of the first data row. This appears to 'hard code' the number of rows
of data to be the number of rows that exists at the time of macro creation.

When I run the macro another time it then selects the same number of rows as
when the macro was created, which will then not match the new current data.
i.e. some rows are left unselected.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Tonto

One way is to use Dynamic range
http://www.contextures.com/xlNames01.html#Dynamic

Or see example 1 and 3 on this page for other ways
http://www.rondebruin.nl/delete.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Tonto" wrote in message ...
I wish to create a macro that will perform functions upon multiple rows of
data. The number of rows of data will change every time.

Problem : I create a macro by recording. I select rows of data using
CTRL/down arrow on the last column and then selecting back to the first
column of the first data row. This appears to 'hard code' the number of rows
of data to be the number of rows that exists at the time of macro creation.

When I run the macro another time it then selects the same number of rows as
when the macro was created, which will then not match the new current data.
i.e. some rows are left unselected.



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
LINEST bug with cubic polynomials in Excel 2003 byundt Excel Worksheet Functions 3 March 21st 05 02:15 PM
Upgrade from Excel 97 to 2003 J. Freed Excel Discussion (Misc queries) 0 March 17th 05 02:49 PM
In Microsoft Excel 2003, when I select a color for a cell it does. Jude Excel Worksheet Functions 3 March 13th 05 04:55 PM
Excel 2003 V's Excel 2000? Ket Excel Worksheet Functions 2 March 9th 05 12:05 PM
quattro pro converter Excel 2003 dr88363 New Users to Excel 0 February 27th 05 05:00 PM


All times are GMT +1. The time now is 01:26 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"