Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Copy range C5:Lastrow and paste to two different worksheets

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Copy range C5:Lastrow and paste to two different worksheets

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

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP Lastrow Range Mr. Damon Excel Discussion (Misc queries) 1 July 29th 08 01:21 PM
Copy range from one worksheet and paste to multiple worksheets mooring Excel Discussion (Misc queries) 10 January 19th 08 04:19 PM
Copy & Paste Range from all Worksheets in all Workbooks in a folder [email protected] Excel Programming 29 April 24th 07 07:11 PM
Looping: Search Range in Multiple Selected Worksheets, Copy/Paste ryguy7272 Excel Programming 6 April 2nd 07 04:50 PM
Lastrow in Range Jeff Excel Discussion (Misc queries) 2 December 17th 04 04:53 PM


All times are GMT +1. The time now is 09:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"