G
gerry405
thanks Dave,
I have tried the populating code as you suggested, it works fine fo
one column(only), but I can't adjust it to do more than one column
partly because I don't understand what your code is doing, more so a
the part below
ie
.Range("D2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
what does "d2:d2 stand for
When I run my macro I would like to populate more than one column s
I've tried to adjust to no avail, I thought I could do the followin
with your code:
Option Explicit
Sub testme02()
Dim LastRow As Long
Dim wks As Worksheet
Set wks = ActiveSheet
With wks
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
.Range("D2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
.Range("F2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
.Range("L2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
End With
End Sub
But this does not work, I expect you'll know why, but to me it's doubl
dutch
I have tried the populating code as you suggested, it works fine fo
one column(only), but I can't adjust it to do more than one column
partly because I don't understand what your code is doing, more so a
the part below
ie
.Range("D2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
what does "d2:d2 stand for
When I run my macro I would like to populate more than one column s
I've tried to adjust to no avail, I thought I could do the followin
with your code:
Option Explicit
Sub testme02()
Dim LastRow As Long
Dim wks As Worksheet
Set wks = ActiveSheet
With wks
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
.Range("D2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
.Range("F2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
.Range("L2").AutoFill _
Destination:=.Range("d2:d" & LastRow)
End With
End Sub
But this does not work, I expect you'll know why, but to me it's doubl
dutch