Solved

VBA to copy down without incrementing numbers

Posted on 2014-10-30
3
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 51

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

691 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