dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,375
- Office Version
- 365
- 2016
- Platform
- Windows
I have a check box to increase a quote by 10%. The formula is multiplied by a cell that contains a 1 or 1.1, depending on whether the check box is selected. I have the following code that won't work, what is wrong with it and what is a more efficient way to write it?
Thanks,
Dave
Code:
Private Sub chkIncrease_Click()
If ThisWorkbook.Worksheets("NPSS_quote_sheet").Cells(11, 13).Value = "1.1" Then
ThisWorkbook.Worksheets("NPSS_quote_sheet").Cells(11, 13).Value = "1"
Else
ThisWorkbook.Worksheets("NPSS_quote_sheet").Cells(11, 13).Value = "1.1"
End If
End Sub
Thanks,
Dave