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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,215,812
Messages
6,127,024
Members
449,352
Latest member
Tileni

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