Solved

VBA to copy down without incrementing numbers

Posted on 2014-10-30
3
189 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 49

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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