Hi Have have below code, but even if there are no errors its displaying err:
Sub ref()
On Error GoTo err
Application.ScreenUpdating = False
ActiveSheet.Unprotect Password:="htc"
ActiveWorkbook.UpdateLink Name:= _
"C:\Documents and Settings\OpsTL1\My Documents\May\Misc\Master-April.xls", _
Type:=xlExcelLinks
ActiveSheet.Protect Password:="htc"
err:
MsgBox ("not")
Sub ref()
On Error GoTo err
Application.ScreenUpdating = False
ActiveSheet.Unprotect Password:="htc"
ActiveWorkbook.UpdateLink Name:= _
"C:\Documents and Settings\OpsTL1\My Documents\May\Misc\Master-April.xls", _
Type:=xlExcelLinks
ActiveSheet.Protect Password:="htc"
err:
MsgBox ("not")