Macro for Inserting Pre-Populated Rows

Origina1Penguin

New Member
Joined
Nov 29, 2015
Messages
1
How do I create a macro that generates a new row with pre-populated formulas in each cell?


I actually only need to populate cloumns A through C in the new row(s). I'll need multiple macros as well, so the line where the row(s) are inserted will move if one or more rows had been inserted already. This is basically a form with questions being answered by the user, and I want some of the questions to generate a follow-up question if not left blank. The follow-up question will be inserted immediately below the trigger question with set text in column A, column B is blank (this is where questions are answered in the whole form), and column C displays a concatenation.

I'm really new to macros, but any help in the right direction will be greatly appreciated.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
START MACRO RECORDER
insert a row where you need it, enter the formulas logically, left to right
stop macro recorder
copy the macro
paste here between code tags
and explain what you need to be done,
new line at always the same location? etc
 
Upvote 0

Forum statistics

Threads
1,215,619
Messages
6,125,875
Members
449,267
Latest member
ajaykosuri

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