Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AutoFill - help with thid

Status
Not open for further replies.

garrbel

Technical User
Sep 22, 2010
14
PT
Hi

I have this code:

Range(Cells(i - 1, 1), Cells(i - 1, 42)).AutoFill Destination:=Range(Cells(i - 1, 1), Cells(i, 42)), Type:=xlFillDefault

With this code I would like to copy but it makes a list. I mean I have in a cell 0,25 .
When I run a code it fills 1,25 --- 2,25 and I would like to have 0,25 0,25

What's wrong?

Thanks
 
I guess I found. I have to use Type:=xlFillCopy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top