Maverickone23
New Member
- Joined
- Mar 21, 2019
- Messages
- 1
Hello,
I'm having a problem trying to develop a code that will enable me to automatically insert a row as enter is pressed. Sounds easy, problem is this needs to happen throughout the excel sheet. There are titles to drawing packages in the sheet, two blank spaces between each title. As drawings are completed they will be placed under their appropriate title. When you press enter after writing out the drawing name, I want a new blank row to appear under the drawing. I can do this for the first drawing package, but since i have to reference the range where I want the blank row to be inserted it won't work for the 2nd thru 47th package. I need this to occur for every package, independently as enter is pressed. Example (Package 1 title is at row 3, Package 2 is at row 6, Package 3 is at row 9. When a drawing is added into the blank row below Package 1 title and enter is pressed, Package 2 drops to row 7 and Package 3 drops to row 10. When a drawing is added to package 2 and enter is pressed, package 3 will drop to row 11.) As you can see, the range will change for every package below Package 1 as drawings are entered. I thought perhaps writing code that will simply say there is to always be 2 blank rows above each title and then designate the titles. Can't figure that one out.
Thanks
I'm having a problem trying to develop a code that will enable me to automatically insert a row as enter is pressed. Sounds easy, problem is this needs to happen throughout the excel sheet. There are titles to drawing packages in the sheet, two blank spaces between each title. As drawings are completed they will be placed under their appropriate title. When you press enter after writing out the drawing name, I want a new blank row to appear under the drawing. I can do this for the first drawing package, but since i have to reference the range where I want the blank row to be inserted it won't work for the 2nd thru 47th package. I need this to occur for every package, independently as enter is pressed. Example (Package 1 title is at row 3, Package 2 is at row 6, Package 3 is at row 9. When a drawing is added into the blank row below Package 1 title and enter is pressed, Package 2 drops to row 7 and Package 3 drops to row 10. When a drawing is added to package 2 and enter is pressed, package 3 will drop to row 11.) As you can see, the range will change for every package below Package 1 as drawings are entered. I thought perhaps writing code that will simply say there is to always be 2 blank rows above each title and then designate the titles. Can't figure that one out.
Thanks