I created a code in a separete excel because the main one is too heavy with codes. In the separete excel the code works perfectly, but when I copy it to the main excel, it keeps giving me this "Application-defined or Object-defined error."
I tryed changing some parameters, and searched for some answers but couldnt find anything.
The line where the code stops with the error is: Range("AZ" & rw).Value = Range("Q" & rw).Value - Choose(Weekday(Range("Q" & rw).Value), 3, 4, 4, 2, 2, 2, 2)
Code:
Thank you
Bookmarks