I have module and sub name as Sub MonthlyOldDataRemove this is all perfect.
I have another module and sub name as sub sundaycall
sunday script goes as, it will only run it the syst,e day is sunday.
rest of the code is all pefect. only on sunday the Sub MonthlyOldDataRemove is run 3 times, but is ther a way when on sunday this Sub MonthlyOldDataRemove runs on the 3 time it will executive sub sundaycall first 2 times it will not run sub sundaycall only 3time it will run sub sundaycall.
I did tried to put a counter as if the Sub MonthlyOldDataRemove is more than 2 only on sunday then it should run the sub sundaycall, but its failing.
any suggestions.
I have another module and sub name as sub sundaycall
sunday script goes as, it will only run it the syst,e day is sunday.
VBA Code:
Sub sundaycall()
If Sheets("Weekly YoDate-RawData").Range("B1").Value <> "Sunday" Then
Exit Sub
End If
rest of the code is all pefect. only on sunday the Sub MonthlyOldDataRemove is run 3 times, but is ther a way when on sunday this Sub MonthlyOldDataRemove runs on the 3 time it will executive sub sundaycall first 2 times it will not run sub sundaycall only 3time it will run sub sundaycall.
I did tried to put a counter as if the Sub MonthlyOldDataRemove is more than 2 only on sunday then it should run the sub sundaycall, but its failing.
any suggestions.