I am using a drop down box which specifes different amortization frequency. That goes to another page and calculates it.
It worked fine, but now I have to protect the calcuation sheet before I send it out.
This creates issues as now that amortization freq. calc macro does not work. Below is my code.
Sub DropDown706_Change() ' Paydown dropdown
Application.DisplayAlerts = False
Worksheets("Detail").Unprotect Password:="Inve$t1" ' Unprotects the sheet
Worksheets("Detail").Range("A38:I402,Q32:AB44").Locked = False
Dim lngLast_Row As Long
Dim lngRow As Long
lngLast_Row = Worksheets("Detail").Range("B" & Rows.Count).End(xlUp).Row
'Dropdown selections
Select Case Worksheets("Detail").Range("AmortizationPeriodDropDown")
Case "1" ' Monthly Cashflow
Application.DisplayAlerts = False
Worksheets("Detail").Unprotect Password:="Inve$t1" ' Unprotects the sheet
Worksheets("Detail").Range("B38:B398").Value = "" 'Converts the value to null
Worksheets("Detail").Range("B39:B398").FormulaR1C1 = Formual"
Just have inculded one case.
I am trying to unprtoect the Details tab using
Worksheets("Detail").Unprotect Password:="Inve$t1" ' Unprotects the sheet
But some how it does not work.
Appreaciate you help.
Thanks
Appz
It worked fine, but now I have to protect the calcuation sheet before I send it out.
This creates issues as now that amortization freq. calc macro does not work. Below is my code.
Sub DropDown706_Change() ' Paydown dropdown
Application.DisplayAlerts = False
Worksheets("Detail").Unprotect Password:="Inve$t1" ' Unprotects the sheet
Worksheets("Detail").Range("A38:I402,Q32:AB44").Locked = False
Dim lngLast_Row As Long
Dim lngRow As Long
lngLast_Row = Worksheets("Detail").Range("B" & Rows.Count).End(xlUp).Row
'Dropdown selections
Select Case Worksheets("Detail").Range("AmortizationPeriodDropDown")
Case "1" ' Monthly Cashflow
Application.DisplayAlerts = False
Worksheets("Detail").Unprotect Password:="Inve$t1" ' Unprotects the sheet
Worksheets("Detail").Range("B38:B398").Value = "" 'Converts the value to null
Worksheets("Detail").Range("B39:B398").FormulaR1C1 = Formual"
Just have inculded one case.
I am trying to unprtoect the Details tab using
Worksheets("Detail").Unprotect Password:="Inve$t1" ' Unprotects the sheet
But some how it does not work.
Appreaciate you help.
Thanks
Appz