Need Macro to Insert Row

Excel 1118 views 6 replies

Suppose

Sheet 1 Page1 for Sundry Debtors is input sheet.. 6 rows were filled with text & numbers..
Sheet 1 Page2 for Sundry Creditors is input sheet.. 4 rows were filled with text & numbers..
Sheet 1 Page3 for Indirect Expenses is input sheet.. 5 rows were filled with text & numbers..
and so on..


Now, in Sheet 2 Page1, I want to
insert automatically all the row data of Sheet1 Page1 below row5 of sheet2 page1.. so macro should insert only 6rows i.e. equal to the number of rows of Sundry Debtors Sheet & fill it up with all the data of sheet1page1..
insert automatically all the row data of Sheet1 Page2 below the resultant data in previous step.. so macro should insert only 4rows i.e. equal to the number of rows of Sundry Debtors Sheet & fill it up with all the data of sheet1page2..
insert automatically all the row data of Sheet1 Page3 below the resultant data in previous step.. so macro should insert only 5rows i.e. equal to the number of rows of Sundry Debtors Sheet & fill it up with all the data of sheet1page3..


e.g.
Input
Sheet1 Page1
Sundry Debtors
1
2
3
4
5
6

Sheet1 Page2
Sundry Creditors
1
2
3
4

Sheet1 Page3
Indirect Expenses
1
2
3
4
5

Pre-defined sheet -
Sheet2 Page
Sundry Debtors
Sundry Creditors
Indirect Expenses

Output required - (macro will automatically count the number of row of data in Sheet1Page1 & insert the same number of row below the predefined group "Sundry Debtors" in sheet2page1 & also punch all the data of these rows..)
Sheet2 Page1

Indirect Expenses
1
2
3
4
5

Sundry Debtors
1
2
3
4
5
6

Sundry Creditors
1
2
3
4

 

Replies (6)

Please post a sample file with sample input data and sample output done manually .

I will try to write the macro.

Regards

Sujit Talukder

Thanks for ur reply Sujit..

 

Here is the sample file..

Dear Adarsh,

Do you the output only given in OutPut sheet 2, at row 13 After running macro, sheet2 will be as below

ie macro will not produce the output as shown till Row 12 in sheet 2?

SInce I am now busy with Tax Audit and ITR filing. it may take some time but it can be done with macro. I will give a try when I will get time.

regards

Sujit Talukder

Originally posted by : Sujit Talukder

Dear Adarsh,

Do you the output only given in OutPut sheet 2, at row 13 After running macro, sheet2 will be as below

ie macro will not produce the output as shown till Row 12 in sheet 2?

SInce I am now busy with Tax Audit and ITR filing. it may take some time but it can be done with macro. I will give a try when I will get time.

regards

Sujit Talukder

Yup...

Thats y i asked only for that macro which can insert rows on the basis on previous input data sheet..

In simple way, i wanna export trial balance from tally & after that I will arrange those exported data according to sheet1..

All the sheets after sheet1 will be locked for editing.. so i will get P&L, B/s & Schedules according to my formated sheet.. the predefined sheets will be just like as i have shown in sheet2 upto 12rows..

 

I think u get wat i wanna..

This macro will help to make balance sheet, P&L and Schedules in very less time with accuracy & with better presentation.

Check the attachment.

Sujit Talukder


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register