kaylarossj
New Member
- Joined
- Aug 9, 2016
- Messages
- 5
This is the First Macro i've ever tried to create. There is two but they are both giving the same error. Any help is appreciated!!!
Sub L2LTrue()
If L2LCheckBox.Value = True Then
'L2L True Macro
Range("E20").Select
ActiveCell.FormulaR1C1 = "=R[38]C[5]-R[39]C[1]-R[-12]C[-3]"
Rows("28:65").Select
Selection.EntireRow.Hidden = False
Rows("28:43").Select
Selection.EntireRow.Hidden = True
Else
' L2LFalse Macro
Rows("27:61").Select
Selection.EntireRow.Hidden = False
Rows("44:59").Select
Selection.EntireRow.Hidden = True
Range("E20").Select
ActiveCell.FormulaR1C1 = "=R[22]C[4]-R[22]C[1]"
Range("G30").Select
End If
End Sub
Sub RentTrue()
If RentCheckBox.Value = True Then
' RentTrue Macro
Range("G30").Select
ActiveCell.Value = "20"
Else
' RentFalse Macro
Range("G30").Select
ActiveCell.Value = "0"
End If
End Sub
Sub L2LTrue()
If L2LCheckBox.Value = True Then
'L2L True Macro
Range("E20").Select
ActiveCell.FormulaR1C1 = "=R[38]C[5]-R[39]C[1]-R[-12]C[-3]"
Rows("28:65").Select
Selection.EntireRow.Hidden = False
Rows("28:43").Select
Selection.EntireRow.Hidden = True
Else
' L2LFalse Macro
Rows("27:61").Select
Selection.EntireRow.Hidden = False
Rows("44:59").Select
Selection.EntireRow.Hidden = True
Range("E20").Select
ActiveCell.FormulaR1C1 = "=R[22]C[4]-R[22]C[1]"
Range("G30").Select
End If
End Sub
Sub RentTrue()
If RentCheckBox.Value = True Then
' RentTrue Macro
Range("G30").Select
ActiveCell.Value = "20"
Else
' RentFalse Macro
Range("G30").Select
ActiveCell.Value = "0"
End If
End Sub