i'm looking for a vba code to solve the following problem
a .xlsm workbook, the protect workbook passwork is known as "111111", the VBA project password is "222222", and how to write vba code to insert a new sheet, suppose the workbook has three worksheet, now using vba code to unprotect workbook, and auto insert a newsheet, then protect workbook again, whcih the password remains as "111111"
using a commondbutton to do this, everytime you click, insert a new sheet.
hope someone can help, many thanks!
a .xlsm workbook, the protect workbook passwork is known as "111111", the VBA project password is "222222", and how to write vba code to insert a new sheet, suppose the workbook has three worksheet, now using vba code to unprotect workbook, and auto insert a newsheet, then protect workbook again, whcih the password remains as "111111"
using a commondbutton to do this, everytime you click, insert a new sheet.
hope someone can help, many thanks!