Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I am trying to copy a range of data from a series of opened workbooks and paste them into a new workbook? How can I do this? So far, I've figured out how to copy the range I want from one notebook, but that's all. Here is my code for this: Sub Macro1() Range("A6", Range("A6").End(xlDown).End(xlToRight)).Select Selection.Copy End Sub Thanks in advanced for any help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
mchangun,
Record a macro whilst performing the desired actions. Edit the code as necessary. NickHK wrote in message ups.com... Hi All, I am trying to copy a range of data from a series of opened workbooks and paste them into a new workbook? How can I do this? So far, I've figured out how to copy the range I want from one notebook, but that's all. Here is my code for this: Sub Macro1() Range("A6", Range("A6").End(xlDown).End(xlToRight)).Select Selection.Copy End Sub Thanks in advanced for any help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Recording a marco helps with the paste part of the code, but doesn't
help me with looping through the opened workbooks. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
mchangun,
Dim WB as Workbook For each WB in workbooks ...code Next NickHK wrote in message ups.com... Recording a marco helps with the paste part of the code, but doesn't help me with looping through the opened workbooks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
how do i copy a worksheet to another work book | Excel Worksheet Functions | |||
automate a cut and paste of data from one work book to another | Excel Discussion (Misc queries) | |||
I wish automate a cut and paste of data from one work book to ano | Excel Worksheet Functions | |||
Macro, Persoanl Work book and CSV workbooks | Excel Programming |