Need VBA code to insert new row based on drop-down cell text

powerpivotlegal

New Member
Joined
May 14, 2014
Messages
30
Hello Excel wizards. I need a multi-faceted vba code that automatically runs when a drop-down text option is selected. I need the VBA to change the drop-down text to another text option in the original row and then add another row and pre-populate the drop-down cell text in that new row.

For example, if a user selects the drop-down option "Contribution - Shares of Opco" in Column C ("Transactions"), I want the code to change the drop-down selection to "Contribution" and then add a row immediately below that in the table and automatically select the drop-down option "Share Transfer of Opco" in Column C for the user. The drop-down selections are linked to lookup tables that pull in prices and people are always forgetting that "Contribution - Shares of Opco" involves 2 separate transactions and 2 separate prices.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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