Active X Button: Insert new row below with formulas and formatting

sam987654

New Member
Joined
Feb 8, 2020
Messages
11
Office Version
  1. 365
  2. 2019
Platform
  1. MacOS
Hello all,

I've done the work of inserting my own Active X command button (titled "New Entry"), and I was able to get it to work by applying the following code:

Private Sub CommandButton1_Click()
Rows(11).Insert
End Sub


This inserts a new row at Row 15, but it is a blank, default row. I'd like it to include all formulas and formatting that hidden Row 14 has. Here is a screenshot of my document

1618414447824.png


I've tried looking this up many times, but can't figure it out. Would anyone be willing to share answer?
 

Attachments

  • 1618414205195.png
    1618414205195.png
    48.6 KB · Views: 46
Glad we could help & thanks for the feedback.
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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