If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
On error
Hi, I have code as below which will update links..
On error sheet will be unlocked.. how to lock the sheet again and exit sub? Sub ref() ActiveSheet.Unprotect Password:="abc" ActiveWorkbook.UpdateLink Name:= _ "asdasd", _ Type:=xlExcelLinks ActiveSheet.Protect Password:="abc" End Sub |
Thread Tools | |
Display Modes | |
|
|