Protect Excel Sheet

I want to protect my active worksheet when error occured in VBA code.

Can you help me to fix this problem

  Devbrat Tripathi

active.sheet.unprotect Password: ="abc"

write any code

active.sheet.uprotect Password: ="abc"

'also u can save 


  Rakesh Sharma       23 Sep 2018       0       0     

Post Your Answers:

Please use the CODE HIGHLIGHT Button to format/highlight your codes if any