On the attached file I have a list of live "job numbers" that are formatted in a specific colour. When a "job" is completed how do I both delete the job number and then get the proceeding jobs to move up to fill the blank by the deleted job?
On the attached file I have a list of live "job numbers" that are formatted in a specific colour. When a "job" is completed how do I both delete the job number and then get the proceeding jobs to move up to fill the blank by the deleted job?
You can delete the rows of the completed jobs. (Filter by color of the completed jobs.) delete the visible rows.
Pete
Why oh why make use of merged cells...Rule No 1 in Excel...Do not merge cells...
Why not just increase the column width and row width for your exact size requirement...
Last edited by sintek; 06-15-2023 at 12:39 PM.
Good Luck
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the star to left of post [Add Reputation]
Also....add a comment if you like!!!!
And remember...Mark Thread as Solved.
Excel Forum Rocks!!!
AGREED! But I wrote this anyway (standard module):...and this in the worksheet module:Please Login or Register to view this content.
Assign the Delete_Click macro to an AutoShape named Delete_Button, which will appear whenever you select a merged cell.Please Login or Register to view this content.
Click it to delete the active cell.
Last edited by leelnich; 06-15-2023 at 02:40 PM.
Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee
Now just imagine how simplistic this would be if the "BUTTONS" were single cells...AGREED! But I wrote this anyway
Double click event... do the exercise and teach OP...
I think I'll leave the preachin' to you.
Meanwhile, I was never happy w/ the workflow in my previous code, so I wrote the following, which adds a "Remove Job #nnnn" command to the Cells Right-Click Context Menu. (right after Clear Contents). In a standard module:
Please see post#10; I fixed a bug in this code (and uploaded the workbook). - Lee
...and this in the Worksheet module:Please Login or Register to view this content.
Just right-click on the cell and select that command to process the removal.Please Login or Register to view this content.
Last edited by leelnich; 06-17-2023 at 09:54 PM.
Non merged option...Simply...Double clicking on cellget the proceeding jobs to move up to fill the blank by the deleted job
Unless you mean something else by quote above...like having last used at last column to be moved to fill gap then...Not as simple...Please Login or Register to view this content.
Please Login or Register to view this content.
Last edited by sintek; 06-16-2023 at 05:45 AM.
In the OPs original data, numbers are sorted top to bottom, then wrap around to the top of the next column. I'm just guessing, but I think the OP wants to preserve that order by moving everything below the Target up, and then moving the top of the next column into the open slot. Then the remainder of THAT column shifts up, and the top of the next column fills in...cascading down to the last column, which ends up having 1 less entry.
OPsNumbers.jpg
In the picture, he hasn't physically shifted the "New Numbers" columns, but logically, 2342 et al should move to the top, with ensuing columns filling in behind.
BTW, I'm glad you gave OP a demo w some actual code. Maybe he'll see the light... though I did have a problem on every 7th d-click. - Lee
Interesting thread this Lee...I like your out of the box thinking...I just assume that as each no box has a specific link, the order would not make a difference...Guess we'll only know once OP responds...
Guess I did not test to full capacity...Random selections etc etc ...though I did have a problem on every 7th d-click
Hey, found a bug in my code - deleting a cell from first column caused the WHOLE bottom row to evaporate! I used a relative reference, when it should have been absolute. Here's the fix:I also improved on the code for handling the custom control:Please Login or Register to view this content.
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks