PC Review


Reply
Thread Tools Rate Thread

Copy range C5:Lastrow and paste to two different worksheets

 
 
PVANS
Guest
Posts: n/a
 
      7th Apr 2010
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 C5the 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


 
Reply With Quote
 
 
 
 
PVANS
Guest
Posts: n/a
 
      7th Apr 2010
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 :

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

"PVANS" wrote:

> 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 C5the 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
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy range from one worksheet and paste to multiple worksheets mooring Microsoft Excel Misc 10 19th Jan 2008 04:19 PM
Copy & Paste Range from all Worksheets in all Workbooks in a folder feature86@yahoo.com Microsoft Excel Programming 31 24th Apr 2007 07:11 PM
Looping: Search Range in Multiple Selected Worksheets, Copy/Paste =?Utf-8?B?cnlndXk3Mjcy?= Microsoft Excel Programming 6 2nd Apr 2007 04:50 PM
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro Steven Microsoft Excel Programming 1 17th Oct 2005 08:56 AM
Copy and Paste between 2 worksheets with VBA =?Utf-8?B?RGF2ZSBZ?= Microsoft Excel Worksheet Functions 2 15th Jun 2005 03:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:18 AM.