Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought that i posted this yesterday but I can't find the posting so
if this is a double post, please point me in the direction of the original post and I will go from there. I have the following Code: Sub Autofill() ' ' Range("B1").Select Selection.Copy Selection.AutoFill Destination:=Range("B1:B10") Range("B1:B10").Select Range("G17").Select End Sub I looked at previous postings on this group and found this topic addressed before and I found code on how to do this so I attempted to apply the following code: Sub Test() ' ' Test Macro ' Range("B1").Select Dim endRow As Long endRow = Cells(Rows.Count, ("B1:B")).End(xlUp).Row ActiveCell.AutoFill Destination:=Range("B1:B") End Sub However, it keeps errorring out, any suggestions? Thank you. Richard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HELP!!! I need macro to autofill | Excel Discussion (Misc queries) | |||
Autofill in macro | Excel Discussion (Misc queries) | |||
Autofill Macro | Excel Programming | |||
Autofill macro | Excel Discussion (Misc queries) | |||
autofill macro | Excel Discussion (Misc queries) |