LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default insert row and add functions

I'm trying to write a macro to loop through rows in a large range.
When it determines that, for example A2 < A3 it inserts two rows.
It then counts number of records in that section SUMS all the numbers
in this section. i.e above first newly inserted row back to last blank
row.

2006/02/14 65 Apples
2006/02/14 43 Apples
2006/02/14 43 Apples
2006/02/14 43 Apples
2006/02/14 43 Apples
2006/02/15 22 Apples
2006/02/15 11 Apples

Would then become

2006/02/14 65 Apples
2006/02/14 43 Apples
2006/02/14 43 Apples
2006/02/14 43 Apples
2006/02/14 43 Apples
5 237

2006/02/15 22 Apples
2006/02/15 11 Apples
2 33 Apples

Any assistance would be very helpful

I've just about got inserting blank row..it's the next bit that's :-(.

Cheers

 
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
nested functions using insert function Annie Excel Worksheet Functions 1 May 2nd 08 12:40 PM
Insert column : lose inclusion in functions Hood Excel Worksheet Functions 1 November 13th 07 12:29 PM
It is some functions who insert rows? Cineva Excel Worksheet Functions 3 November 19th 05 09:46 PM
Insert Functions reset Excel Discussion (Misc queries) 0 December 20th 04 09:26 PM
User functions and the Insert-Function dialogue Tony Seiscons Excel Programming 1 September 22nd 04 02:02 PM


All times are GMT +1. The time now is 11:51 PM.

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

About Us

"It's about Microsoft Excel"