Hi, I need help in a vba code that can copy data from one cell to another cell only if current weeknum get change.
I have data in cell K3:k350, which needs to be copied to cell J3:K350 ONLY if current weeknum gets change.
Thanks in advance..
Hi, I need help in a vba code that can copy data from one cell to another cell only if current weeknum get change.
I have data in cell K3:k350, which needs to be copied to cell J3:K350 ONLY if current weeknum gets change.
Thanks in advance..
You may try something like this.....
![]()
Sub CopyDataBasedOnWeekNum() If WorksheetFunction.WeekNum(Date) <> WorksheetFunction.WeekNum(Date - 1) Then Range("K3:K350").Copy Range("J3") End If End Sub
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks