Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there lbargers,
You could try something like this ... Sub CopyMyDataFromBookToBook() Dim wbCopy as Workbook, wbPaste as Workbook Dim wsCopy as Worksheet, wsPaste as Worksheet Dim rngCopy as Range, rngPaste as Range Set wbCopy = Workbooks("testLog.xls") Set wbPaste = Workbooks("Script.xls") Set wsCopy = wbCopy.Sheets("summary") Set wsPaste = wbPaste.Sheets("findings") Set rngCopy = wsCopy.Range("A1:A10") Set rngPaste = wsPaste.Range("A1:A10") rngCopy.Copy Destination:=rngPaste Application.CutCopyMode = False End Sub Change the ranges to suit. HTH -- Regards, Zack Barresse, aka firefytr To email, remove NOSPAM "lbargers" wrote in message ... Hi all, How can I setup a macro that will pull data in from a range.. From one xls spreadsheet(testLog.xls)(summary tab) to another (Script.xls)(findings tab)? -- lbargers ------------------------------------------------------------------------ lbargers's Profile: http://www.excelforum.com/member.php...o&userid=32798 View this thread: http://www.excelforum.com/showthread...hreadid=527216 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy and Paste with Macro Between sheets | Excel Discussion (Misc queries) | |||
Copy&paste of several sheets | Excel Discussion (Misc queries) | |||
Copy and paste between sheets | Excel Programming | |||
Copy and paste spread sheet | Excel Programming | |||
MS Excel Sheets...how to copy and paste ? | Excel Programming |