VBA to insert user specified number of rows after last row with formulas from a specified range

GSxMuscleMlk

New Member
Joined
Dec 8, 2021
Messages
1
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
I'm newer to VBA and have been trying to combine the various parts of this request with no luck.

To summarize:

VBA to run on click
1st function - ask user how many rows to be added and allow an input (0-999)
2nd Function - find the last used row in the data and insert the specified number of rows from 1st function
3rd function - in the newly added rows, copy from a specific row which contains formulas and paste formulas in all new rows
End.

Final result should provide new rows with prepopulated formulas from a specific range.

The Range that has formulas, i'd like to enter this in an unused part of the worksheet, say row 200 and specify what formulas will be paste in each new row.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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