Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

paste a set of formulas to the end of the columns (end unknown)

$
0
0
Good morning, all,

Help!!! I am working on automating some reports we do, one step at a time. Right now I am trying to copy some code in columns e through l to the end of the sheet, but since I can't assign a certain start and end spot, it is a little complicated. I defined the line to start at as title row. I don't know where the end will be. Autofill should work, I think.
Code:

    Sheets("month").Select
    Range("A2:B3000").Select
    Selection.Copy
    Sheets("Results").Select
    With ws
        titleRow = lastRow + 5
        .Range("a" & titleRow).PasteSpecial
       
    End With
   
    With ws
        .Range("E3:L3").Copy
        .Range("e" & titleRow).PasteSpecial
    End With

Now I need it to paste those formulas from E3 through L3 to the end of the new information. I've tried several ways, but haven't gotten a good result yet. Any ideas? help? It is probably easy for those of you with more experience. I'd appreciate any help. Thanks!

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>