Hello all,
I am a newbie with VBA and new to this forum, so please excuse any poor terminology.
I have created a form that I fill in when working with customers and I have created a VBA which copies the filled in data to another sheet.
The problem I am facing is that my code for pasting into the next empty row / cell of that column doesn't consistently work. It continues to overwrite what was previously copied and pasted.
Here is what I have so far:
Thanks!
I am a newbie with VBA and new to this forum, so please excuse any poor terminology.
I have created a form that I fill in when working with customers and I have created a VBA which copies the filled in data to another sheet.
The problem I am facing is that my code for pasting into the next empty row / cell of that column doesn't consistently work. It continues to overwrite what was previously copied and pasted.
Here is what I have so far:
Code:
Sub CheckBox()
If (Range("B15").Value = True) Then
Windows("Customer Database.xlsx").Activate
Range("F1").End(xlDown).Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "Yes"
Windows("Client Service Form Template.xlsm").Activate
Else
Windows("Customer Database.xlsx").Activate
Range("F1").End(xlDown).Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "No"
Windows("Client Service Form Template.xlsm").Activate
End If
If (Range("D15").Value = True) Then
Windows("Customer Database.xlsx").Activate
Range("G1").End(xlDown).Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "Yes"
Windows("Client Service Form Template.xlsm").Activate
Else
Windows("Customer Database.xlsx").Activate
Range("G1").End(xlDown).Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "No"
Windows("Client Service Form Template.xlsm").Activate
End If
End Sub
Thanks!