ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Fill down range (https://www.excelbanter.com/excel-programming/285602-fill-down-range.html)

Nancy[_4_]

Fill down range
 
I'm getting a debug error at the Selection.Autofill part.

I'm copying a cell from one sheet to a cell in another.
Then trying to fill down the formula until the end of data
for the column.

Can you tell me what is wrong with my code.

Tks.


Sheets("BLP_SETUP").Select
Application.Run "BLPLinkReset"
Selection.Copy
Sheets("pending_settlements").Select
Application.Run "BLPLinkReset"
ActiveSheet.Paste
Application.CutCopyMode = False
Range("F2").Select
Selection.AutoFill Destination:=Range(ActiveCell, _
ActiveCell.End(xlDown))
Application.Run "BLPCreate"
Application.Run "RefireBLP"
Range("F2").Select



Bill Manville

Fill down range
 
Nancy wrote:
I'm getting a debug error at the Selection.Autofill part.

What is the error message?
What is in F2?
Do the cells from F3 to the "end of the column" already have something
in?

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup


Nancy[_4_]

Fill down range
 
I figured it out.
I realized that I didn't place a range for the copy
destination. Once i place the range in, then the macro ran
fine.

tks.

-----Original Message-----
Nancy wrote:
I'm getting a debug error at the Selection.Autofill

part.

What is the error message?
What is in F2?
Do the cells from F3 to the "end of the column" already

have something
in?

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

.



All times are GMT +1. The time now is 07:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com