Copy range C5:Lastrow and paste to two different worksheets

P

PVANS

Good morning

I cannot seem to find a solution to this, and hope someone might be able to
help me.

I have three worksheets: Ratios, Trades, Trades2

I am trying to find a vba method to select the Range C5:(the last row used
in columnC) on the Ratios sheet, and copy and paste this range to Cells
F11->down on the Trades and Trades2 Sheets.

Please could someone provide a suggestion for this. I really do appreciate
the help

Regards,
Paul
 
P

PVANS

Darn it, always pleasing when I manage to solve my own problem - but always
concerned I may have wasted someones time by posting here and then figuring
it out two seconds later :p:

this works perfectly in case someone else runs into a similar issue:

Sub percentages()

Dim LastrowA As Long
Set SrcSht = Sheets("Ratios")
Set DstSht = Sheets("Trades")
Set DstSht1 = Sheets("Trades2")

LastrowA = SrcSht.Cells(Cells.Rows.Count, "C").End(xlUp).Row
SrcSht.Range("C5:C" & LastrowA).Copy DstSht.Cells(11, 6)
SrcSht.Range("C5:C" & LastrowA).Copy DstSht1.Cells(11, 6)
End Sub

Thanks if u were investigating it for me though I do appreciate your time
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top