Using command button in macro enabled form to add rows under multiple headings

jenb03

New Member
Joined
Jan 9, 2018
Messages
1
Hi! I am looking for help with formulas in my macro enabled form, which will allow the user to add multiple rows to enter free text under 3 headings (if they require more than 1 entry). I want to have an "Add Another" button which the user can click to copy more rows into the form automatically and so they can enter the details into. In relation to the below, If they click the button in row 23 to add another cause and control, rows 24 and 25 will duplicate (these can be added below row 23 each time for this heading). I need them to be able to add as many as they want for each heading (23, 26 and 29).

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]Causes and Controls (heading)[/TD]
[TD]"Add another" button[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]Cause[/TD]
[TD]Free text[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]Control[/TD]
[TD]Free text[/TD]
[/TR]
[TR]
[TD]26[/TD]
[TD]Consequences and Controls (heading)[/TD]
[TD]"Add another" button[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]Consequence[/TD]
[TD]Free text[/TD]
[/TR]
[TR]
[TD]28[/TD]
[TD]Control[/TD]
[TD]Free text[/TD]
[/TR]
[TR]
[TD]29[/TD]
[TD]Action Plans (heading)[/TD]
[TD]"Add another" button[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]Title[/TD]
[TD]Free text[/TD]
[/TR]
[TR]
[TD]31[/TD]
[TD]Details[/TD]
[TD]Free text[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]Owner[/TD]
[TD]Free text[/TD]
[/TR]
</tbody>[/TABLE]

I hope this makes sense- any advice is appreciated! :)
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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