Inserting rows from a formula using a Macro 
Author Message
 Inserting rows from a formula using a Macro

Please help.

I need to expand a file I am working on by creating a
macro to insert the number of rows equal to the total sum
on the worksheet..

I then need to auto-fill down on those inserted rows with
the autofill automtically stopping when it reaches a
number that is a reference in anotehr cell.

Please let me know if this is at all possible

thanks



Sun, 05 Jun 2005 13:34:34 GMT  
 Inserting rows from a formula using a Macro
Yes it is.

First, manually record what you want to do.

The macro recorder will assume you want to do this to the
same cells every time. Problem, this will vary.

Second, determine what will drive the number of rows to
insert and vary the recorded code to take this into
account.

Third, determine the values/formulae to autofill, either
use copy paste with xlenddown or do.... until loop to do
the fill.

Steve

Quote:
>-----Original Message-----
>Please help.

>I need to expand a file I am working on by creating a
>macro to insert the number of rows equal to the total sum
>on the worksheet..

>I then need to auto-fill down on those inserted rows with
>the autofill automtically stopping when it reaches a
>number that is a reference in anotehr cell.

>Please let me know if this is at all possible

>thanks

>.



Sun, 05 Jun 2005 14:12:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. hiding rows with formulas using macros

2. Insert row, preserve formulas from row above/below?

3. Auto-insert row using a Macro?

4. Insert Row using Macro (VBA)

5. Excel 2000: AutoSum or Insert Row in Protected Sheet using VB macros

6. Inserting rows using a macro

7. Macro to insert a row and paste previous row into it

8. Macro to Insert Rows, and move up one Row

9. macro to insert new row every other row

10. Insert Macro to insert a row in a table


 
Powered by phpBB® Forum Software © phpBB Group