I don't understand why this isn't pasting the value of C4 into C5:C1000. When I run it in any sheet (not Employees) it works except for the pasting. It will paste the range on whatever sheet I'm on, not "Employees", unless of course I'm on the sheet "Employees".
I also tried
On a side note, I'd like this to run only if C4 is empty/blank.
Thank you
VBA Code:
With Sheets("Employees").Range("C4")
.Formula = "=LEFT(B4,2)"
.Formula = .Value
.Copy Range("C5:C1000")
End With
I also tried
VBA Code:
.Range("C4").Copy Range("C5:C1000")
VBA Code:
.Range("C4") = Range("C5:C1000")
VBA Code:
.Range("C4").Value = Range("C5:C1000").Value
On a side note, I'd like this to run only if C4 is empty/blank.
VBA Code:
If Sheets("Employees").Range("C4")="" Then
With Sheets("Employees").Range("C4")
.Formula = "=LEFT(B4,2)"
.Formula = .Value
.Copy Range("C5:C1000")
End With
End If
Thank you