Code:Sub test() Dim LR As Long LR = Range("G" & Rows.Count).End(xlUp).Row Range("C5") = VBA.Left(Range("A" & LR), 4) End Sub
Change "x1up" to "XLUP"I made some changes
Sub Cfive()
'
' Cfive Macro
' Macro recorded 9/20/2011 by DCS Valued Customer
'
Dim LR As Long
LR = Range("f" & Rows.Count).End(x1up).Row
Range("C5") = VBA.Left(Range("b" & LR), 4)
'
End Sub
and get this error message
cant execute code is break mode
yellow highlighted in my bold face line
what do i need to adjust
also is there a notation needed to start count cell F7 downward
I Made an error in specifying col G it should have been col FWhy 'F'? There's no mention of that in the first post.
I used...
Code:LR = Range("f" & Rows.Count).End(xlUp).Row
...with no error.