Can achieve with VBA like this..
Below assumes that
none of your worksheets are hidden and that the
structure of the workbook is not protected
I would not expect standard sheet protection to cause any issues
Create a copy of your workbook and test on that
Place code below in ThisWorkbook Module and amend
Master (to name of frozen 5th sheet) BEFORE exiting VBA
{ALT}{F11} to go to VBA window \ double-click on
ThisWorbook in VBA Project Window \ Paste code in the window that opens up
Code:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
If ThisWorkbook.Worksheets.Count < 6 Then Exit Sub
Dim c As Long, s As Long, wsM As Worksheet
On Error Resume Next
Set wsM = Sheets("[I][COLOR=#ff0000]Master[/COLOR][/I]")
On Error GoTo Handling
Application.EnableEvents = False
c = Worksheets.Count
If wsM.Index <> c Then wsM.Move after:=Worksheets(c)
wsM.Activate
s = Sh.Index
Select Case s
Case Is < 5
Sheets(1).Activate
wsM.Move after:=Sheets(4)
Case Is < (c - 4)
Sheets(s - 3).Activate
wsM.Move after:=Sheets(s)
End Select
Sh.Activate
Handling:
Application.EnableEvents = True
End Sub
Run
Events to re-enable event trigger if inadvertently disabled during testing!!
Place code below in a standard Module
(when in VBA window)
Inserts a Module with {ALT} I M \ Paste code in the window that opens up
Code:
Sub Events()
Application.EnableEvents = True
End Sub
Save the workbook as macro enabled