Tricky Event Row Insertion - kind of a Loop?

actjfc

Active Member
Joined
Jun 28, 2003
Messages
416
Excel friends,

I have an Excel Template where I would like to automatically add one row when the user writes text in Cell B10 then the macro will insert one blank row underneath B10. Later, if the user writes something in Cell B11 then the macro will add one empty row underneath B11, and so on up to 10 times. Can somebody help? Thanks!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I have an Excel Template where I would like to automatically add one row when the user writes text in Cell B10 then the macro will insert one blank row underneath B10. Later, if the user writes something in Cell B11 then the macro will add one empty row underneath B11, and so on up to 10 times. Can somebody help? Thanks!
i presume there is text immediately under the blank cell that is to be filled in, correct? If so, is the user allowed to edit that existing text? For example, let's say you previously filled in B10 so the new row was inserted and B11 is empty. If there is existing data in cells B12 to B19, is the user allowed to edit them or are they locked from being edited?
 
Upvote 0
You are on the issue. The Cell B10 is empty, but the current cell B11 has a noneditable heading/title. So, the idea is inserting rows under B10, so the present B11 is moved further down as the VBA adds new empty rows. Yes, most of the rows under B10 should not be edited by the user (locked). Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,057
Members
448,940
Latest member
mdusw

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