Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I am not having any luck with moving a worksheet to after the last worksheet in the workbook.
I am trying to move worksheet ws_src to the last worksheet of the workbook. It's not working.
Rich (BB code):
With ws_src
ag = 365
.Unprotect
dt_row = Application.WorksheetFunction.Match(CLng(Date), .Columns(2), 0)
.Range("C" & dt_row & ":G" & ag).ClearContents
.Protect
.Name = "(former " & tab_scr & ")"
.Tab.Color = RGB(33, 54, 51)
.Move after:=Worksheets(Worksheets.Count)
.Visible = False
End With
I am trying to move worksheet ws_src to the last worksheet of the workbook. It's not working.