ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   trouble shoot Selection.AutoFill Destination (https://www.excelbanter.com/excel-programming/411014-trouble-shoot-selection-autofill-destination.html)

mario

trouble shoot Selection.AutoFill Destination
 
Can somebody correct this code:
Selection.AutoFill Destination:=Range(Cells(1, 4).Address, Cells(LastRow,
3).Address)

The above one gives a lot of errors.



Norman Jones[_2_]

trouble shoot Selection.AutoFill Destination
 
Hi Mario,

Your range syntax could be simplified to:


Selection.AutoFill Destination:=Range(Cells(1, 4), _
Cells(Lastrow, 3))

However, as you have not indicated the
problems which you have encountered
and you have not provided any details
of your objective, it is difficult to help
you further.


---
Regards.
Norman

"mario" wrote in message
...
Can somebody correct this code:
Selection.AutoFill Destination:=Range(Cells(1, 4).Address, Cells(LastRow,
3).Address)

The above one gives a lot of errors.





All times are GMT +1. The time now is 07:18 AM.

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