J
jfcby
I'm using Excel 2003.
With the folleowin code I'm getting the object global failed error at
this line in the code: Range(rw, 4).Value = Range(rw, 4).Offset(0,
-1).Value.
What needs to be chaned in that line so that the code will work?
Sub CopyCellValueExample1()
'If the Column D selection has blank cells then copy data from column
C _
same cell.
Dim rngR As Object, rw As Variant
For Each rngR In Selection
rw = rngR.row
If rngR = "" Then _
Range(rw, 4).Value = Range(rw, 4).Offset(0, -1).Value
Next rngR
End Sub
Thank you for your help,
jfcby
With the folleowin code I'm getting the object global failed error at
this line in the code: Range(rw, 4).Value = Range(rw, 4).Offset(0,
-1).Value.
What needs to be chaned in that line so that the code will work?
Sub CopyCellValueExample1()
'If the Column D selection has blank cells then copy data from column
C _
same cell.
Dim rngR As Object, rw As Variant
For Each rngR In Selection
rw = rngR.row
If rngR = "" Then _
Range(rw, 4).Value = Range(rw, 4).Offset(0, -1).Value
Next rngR
End Sub
Thank you for your help,
jfcby