I have 2 worksheets in the workbook, 1.MENU, 2.BASIC DATA
I am in MENU worksheet.(BASIC DATA sheet is hiden)
Double click on OPTION-1 in MENU worksheet initializing VB
Sheets("BASIC DATA").Visible = True
ActiveSheet.Unprotect
Range("D6:G11").Select
Selection.Locked = False
Selection.FormulaHidden = False
Range("D14
20").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Sheets("MENU").Select
ActiveWindow.SelectedSheets.Visible = False
After this the sheet MENU sheet is hiden, and BASIC DATA sheet appears.
For some reason cells are not unlocked in BASIC DATA sheet, as I expected.
I used password protection manually, but just couldn't get the sintax in macro when i tried to do
with macro. How can i do automatically entering the password
(With password 321, I tried:
cursht = ActiveSheet.Name
Sheets(cursht).Unprotect "321"
didn't work out.
Is it possible that I can't manage the BASIC DATA SHEET from the MENU sheet with VB program?
I am in MENU worksheet.(BASIC DATA sheet is hiden)
Double click on OPTION-1 in MENU worksheet initializing VB
Sheets("BASIC DATA").Visible = True
ActiveSheet.Unprotect
Range("D6:G11").Select
Selection.Locked = False
Selection.FormulaHidden = False
Range("D14
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Sheets("MENU").Select
ActiveWindow.SelectedSheets.Visible = False
After this the sheet MENU sheet is hiden, and BASIC DATA sheet appears.
For some reason cells are not unlocked in BASIC DATA sheet, as I expected.
I used password protection manually, but just couldn't get the sintax in macro when i tried to do
with macro. How can i do automatically entering the password
(With password 321, I tried:
cursht = ActiveSheet.Name
Sheets(cursht).Unprotect "321"
didn't work out.
Is it possible that I can't manage the BASIC DATA SHEET from the MENU sheet with VB program?