Solved

VBA to copy down without incrementing numbers

Posted on 2014-10-30
3
241 Views
Last Modified: 2014-10-30
I am usiing the below code to coy down cells but it is increasing the numbers in each cell. How do I do this without it increasing the numbers

With ActiveSheet
        LastR = .Cells(.Rows.Count, "L").End(xlUp).Row
        Range("C2:I2").AutoFill Destination:=Range("C2:I" & LastR)
    End With
0
Comment
Question by:Jagwarman
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40412666
Hi,

pls try

With ActiveSheet
        LastR = .Cells(.Rows.Count, "L").End(xlUp).Row
        Range("C2:I2").AutoFill Destination:=Range("C2:I" & LastR), Type:=xlFillCopy
    End With

Regards
0
 

Author Comment

by:Jagwarman
ID: 40412674
brilliant Rgonzo thanks
0
 

Author Closing Comment

by:Jagwarman
ID: 40412676
always provides a great answer.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question