still having trouble with adding rows from cell value

Ahjem

New Member
Joined
Apr 23, 2002
Messages
12
here's the situation: i have numerous sheets. the last sheet is a summary of all the data, in a table.

on one sheet, you need to input a number signifying the number of people.

with the use of a macro, rows are added in the summary table for the names of the people

but i dont know how to do this.

please tell me how, by posting the code (in full)
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
On 2002-04-25 15:02, Ahjem wrote:
here's the situation: i have numerous sheets. the last sheet is a summary of all the data, in a table.

on one sheet, you need to input a number signifying the number of people.

with the use of a macro, rows are added in the summary table for the names of the people

but i dont know how to do this.

please tell me how, by posting the code (in full)

If A1 is the reference cell

Sub tester()
Rows(ActiveCell.Row).Resize([A1]).Insert
End Sub

This is dependent on the active cell. Where are these rows being inserted? How are you to identify where to start?

Not a full solution, but this may help get you started.

HTH,
Jay
 
Upvote 0
by "active cell", do you mean the cell that is currently selected?

how would you change "ActiveCell.Row" to a certain row on a certain sheet?
 
Upvote 0
ok i'll try to be more specific, sparing you unnecessary details of the spreadsheet..

the summary table and where you put the amount of people are on different sheets

the macro will activate after you press a button on the number of people sheet, where it inserts the rows (how many depends on the value in the number of people box) into the summary table on the other sheet to accommodate for their names

...??
 
Upvote 0
Never spare details...
List them all or no-one is
going to be able to help you...
Tom
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top