Morning all
A bit of a novice with Excel but I've been tasked with copying data from one Worksheet to another based on the value of a cell in the original worksheet.
So in Column B, any cell with "Monies from Client" along with corresponding data in the same row under Column C, D and E would need to be copied to another worksheet.
I've tried to create a macro in VBA using the following but I just cannot get it to work:
Sub Monies()
If Worksheets("Overall Cash Account")!$B$4 = "Monies from Client" Then
Worksheets("Overall Cash Account").Range("A4:D4").Copy
destination: Worksheets("Payments from Client").Range ("A4:D4")
End If
End Sub
Would anyone know the formula for the same, outside of VBA, or where I'm going wrong on VBA?
Any help is very much appreciated!
- Liam
A bit of a novice with Excel but I've been tasked with copying data from one Worksheet to another based on the value of a cell in the original worksheet.
So in Column B, any cell with "Monies from Client" along with corresponding data in the same row under Column C, D and E would need to be copied to another worksheet.
I've tried to create a macro in VBA using the following but I just cannot get it to work:
Sub Monies()
If Worksheets("Overall Cash Account")!$B$4 = "Monies from Client" Then
Worksheets("Overall Cash Account").Range("A4:D4").Copy
destination: Worksheets("Payments from Client").Range ("A4:D4")
End If
End Sub
Would anyone know the formula for the same, outside of VBA, or where I'm going wrong on VBA?
Any help is very much appreciated!
- Liam