Microsoft Excel Question:
Download Job Interview Questions and Answers PDF
Some of the functions that we want our macros to accomplish are not possible without first unprotecting the worksheet/workbook with the password?
Answer:
Worksheets("MySheet").Unprotect password:="drowssap"
'your code here
Worksheets("MySheet").Protect password:="drowssap"
Be sure to protect your macro code to hide the sheet password.
'your code here
Worksheets("MySheet").Protect password:="drowssap"
Be sure to protect your macro code to hide the sheet password.
Download MS Excel Interview Questions And Answers
PDF