Move rows from pending to completed tab

holyrollyp

New Member
Joined
Apr 2, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello MrExcel Gurus/Friends,

I need help please. In the attached file, I wanted to create a macro that fires automatically whenever the Status column has a value of "Completed".
For all completed (status), I wanted to move that row from Pending tab to Completed tab. My Completed tab has some previously completed already, and the newly completed rows from pending tab, I need to keep adding into the list.
So basically, I want pending to have pending only, and keep adding all completed to the Completed tab.

Can you please help me. Thanks so much in advance for any help or recommendation.

Thanks,
Rolly
 

Attachments

  • Pending Tab.jpg
    Pending Tab.jpg
    73.7 KB · Views: 13
  • Completed Tab.jpg
    Completed Tab.jpg
    61 KB · Views: 11
Hi
code you have is event code & should, providing events have not been disabled, automatically run when you make a direct change (not by formula) to any cell in target range i.e Column 5 in the Pending worksheet.

If still not resolved post back & will look further.

Dave
Glad to see your helping out here. I have no answer why this would not work
 
Upvote 1

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Glad to see your helping out here. I have no answer why this would not work

Have not tried your solution but looks like it should do what OP wants.
My initial thoughts were OP may have had an unhandled error leaving EnableEvents disabled which may explain why code stopped working. Personally, I would include error handling in code when Events are disabled.

Anyway, we are all here to help & hopefully OP has now figure out the problem.

Dave
 
Upvote 1
Hi
code you have is event code & should, providing events have not been disabled, automatically run when you make a direct change (not by formula) to any cell in target range i.e Column 5 in the Pending worksheet.

If still not resolved post back & will look further.

Dave
Hi Dave,
thanks so much for the reply. Target column (col 5) is not a formula, but there is data validation in it and the only values are Pending & Completed. Is that an issue?
Also, can I add the code even when I am already in the middle of my list? Or do I need to create new excel file first, add the code and start populating the list by copying and pasting?
 
Upvote 0
Hello @My Aswer Is This / @dmt32
I think the code is working now. I removed the code, both of your codes. I created a blank file with all the headers and added the original code (thanks very much again). It worked very suddenly :) I started adding my list (manual copy and paste), my target column I change it to data validation and the codes still works. Looks like I no longer need to add the code from dmt32 (but thanks very much as well for the help there). My excel is working fine and dandy now. Maybe i was just doing a lot initially and my excel got cluttered.
You saved my day! Have a great weekend to you both. :)

Sincerest thanks,
Rolly
 
Upvote 0
Hello @My Aswer Is This
It's me again. I am sorry to come back. Regarding the original code above, looks like this works for myself only as a user. When another user access the file (stored on SharePoint Drive), excel file does not work when she changes the status to Completed. If I do the update myself, the code is still working. Do I need to update something in the code so it is not user specific?
Thanks in advance for the help.
 
Upvote 0
You said:
"When another user access the file (stored on SharePoint Drive), excel file does not work."

I know nothing about: "SharePoint Drive"
But my code has nothing to do with:
user specific?
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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