Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy and Paste specific data


Hi,

I have 1 spreadsheet with ALL data
I have 2nd spreadsheet that has a selection of data from 1st sheet

I need help with a loop that will go to 1st spreadhsheet, copy the data
only pertainting to the second one, and paste it into 2nd spreadsheet;

This is where I started:

Sub PasteFromMaster()
Dim start As Range
Dim finish As Range

Workbooks("Test_Master").Activate

Set start = Workbooks("Test_Master").Sheets("sheet1").Range("a 1:d1")
Set finish = Workbooks("Test_1").Sheets("sheet1").Range("a7")

start.Copy finish

Do While ActiveCell.Value < ActiveCell.Offset(1, 0)
ActiveCell.Offset(1, 0).Select

'Range "start:finish".Select ** not sure about this
Selection.Copy
Windows("TEST_1.xls").Activate
Range("A7").Select
ActiveSheet.Paste

Loop

End Sub

thanks
Liz


--
lizb22
------------------------------------------------------------------------
lizb22's Profile: http://www.excelforum.com/member.php...o&userid=36210
View this thread: http://www.excelforum.com/showthread...hreadid=560046

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
Copy / paste only specific rows Benjamin Excel Discussion (Misc queries) 3 April 11th 08 03:14 PM
Copy, Paste in a specific format DB Excel Discussion (Misc queries) 0 May 2nd 07 07:47 PM
COPY AND PASTE SPECIFIC ROWS HERNAN Excel Discussion (Misc queries) 2 August 17th 06 07:32 PM
Copy/Paste Rows that Contain Specific Text Mike Woodard Excel Worksheet Functions 1 March 8th 06 07:35 PM
Copy table information and paste sorted based on specific field. Paul Excel Programming 1 August 5th 05 04:54 PM


All times are GMT +1. The time now is 07:36 PM.

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"