Good afternoon, everyone
I need a macro that checks column E in the 2 worksheets of the Customer Balance workbook:
If it is Zero , or with a lower value than column D , transfer certain columns to another worksheet , in another workbook .
Good afternoon, everyone
I need a macro that checks column E in the 2 worksheets of the Customer Balance workbook:
If it is Zero , or with a lower value than column D , transfer certain columns to another worksheet , in another workbook .
See next code with some cosmetic changes
It assumes that all files are loaded in Excel
![]()
Please Login or Register to view this content.
Last edited by PCI; 05-26-2025 at 03:59 PM. Reason: Complement for border drawing
- Battle without fear gives no glory - Just try
Hello @Danilo Flaiban. Another option for you based on the code that @PCI provided you above, rewritten using an array that speeds up the macro on large amounts of data. If @PCI doesn't mind, of course. The second workbook (Customer balance.xlsx) does not have to be open, the code will open and close it automatically.Good luck.![]()
Please Login or Register to view this content.
Last edited by MikeVol; 05-26-2025 at 04:41 PM. Reason: Update post
NOTE: As the original poster/owner, only you can mark your thread as SOLVED (Thread Tools above Post #1).
You can say "Thanks" in your thread to everyone who offered to help you.
You can also reward them by clicking * "Add Reputation" under their username on the left.
With Regards, MikeVol.
Another Option...
![]()
Please Login or Register to view this content.
Last edited by Sintek; 05-27-2025 at 10:32 AM.
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 [★ Add Reputation] to left of post window...
Also....Add a comment if you like!!!!
And remember...Mark Thread as Solved...
Excel Forum Rocks!!!
Guys... you've all been surgical with the codes!
There's just one more issue... I just need the date to import the data to be from 2024 to the current year , keeping the idea for zeroes and different values between columns.
Last edited by Danilo Flaiban; 05-28-2025 at 12:58 PM.
Please try.data to be from 2024 to the current year![]()
Please Login or Register to view this content.
Here we are
![]()
Please Login or Register to view this content.
Thanks very much for the codes.
Now...The task went very quickly!
Good News.
Thx for the Rep and enjoy Excel
If you had to go faster, it can be done ...!
Thx for the Rep+
With Regards, MikeVol.
Apologies for late response...Was attending a conference...
Just for closure...My amendment...
Thanks for rep +![]()
Please Login or Register to view this content.
![]()
Thanks a lot, Sintek !!!
Perfect !!!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks