Double click on a specific cell to insert a row with data from another sheet

DDelainy

New Member
Joined
Dec 22, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,
I would like to do the following:
- double click on a cell in column H (starting from cell H14 and down) inserts a row below, copied from another sheet (hidden sheet with data)
- double click on a cell in column I (starting from cell I15 and down) deletes this row.

This will apply for a several section on the sheet, but insert or delete cells will be always in columns H & I. Also, top row after section title ("Section A", "Section B") will only have cell H active, so the top row couldn't be deleted.

The whole sheet will be shifting down and up, so the row numbers won't be constant (even the top rows after each section title).

Thanks so much!

PS: I tried creating shapes with macros, but with help of MrExcel was only able to figure out how to insert/delete row based on active cell. Hence, trying double-click. Thanks so much!

1672846923756.png
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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