Add row or column

drubin25

Board Regular
Joined
Mar 19, 2016
Messages
62
I am trying to create a code that will do the following:

When I click an "Add Machine" button, it will add a row in two places- the next available row (in this case) rows 14 and 26, and it will have a pop up message that states, "Enter the Machine Name" with a space underneath in the pop up message to enter the machine name. I would also like to capture all of formulas if possible (see C16:I25).

I would also like to do the same with an "Add Line" button that will do the same, but for columns. The pop up message would say, "Enter the Line Name".

Thank you!
 

Attachments

  • Screenshot 2022-03-09 083354.png
    Screenshot 2022-03-09 083354.png
    28.8 KB · Views: 6

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
The easiest way I can think of is to add a 'Form' button to your 'Quick Access Toolbar' that will then allow you to add data as needed for new machines. There are a number of helpful links on YouTube to walk through this.
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

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