PC Review


Reply
Thread Tools Rate Thread

Copy from closed excel file and paste to master file then loop for same siles

 
 
Steve B
Guest
Posts: n/a
 
      6th Mar 2007

I am trying to set up a macro to copy a range from a closed workbook
into an active workbook.

I have been able to copy and paste the information while keeping the
document closed, but I need a few other issues addressed as well.

1) I cannot make change the copy paste into a copy paste special...
value, add.

2) Also, I need the "add" feature because I want to create a loop
that pulls the same range from the same sheet in duplicate workbooks.
The only difference is that the workbooks are named in sequential
order, for example: 1.xls, 2.xls, 3.xls, etc... Can I reference the
1,2,3...?

Is there a was to create a loop that will follow these rules? The
excel files would all be in the same file ie C:\data.

 
Reply With Quote
 
 
 
 
Greg Glynn
Guest
Posts: n/a
 
      6th Mar 2007
Steve,

Are you making the copy with a direct reference into the closed
workbook?

Greg

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      6th Mar 2007
Look for examples on my site Steve
http://www.rondebruin.nl/copy3.htm

Maybe you can try the ADO example ?


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Steve B" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>
> I am trying to set up a macro to copy a range from a closed workbook
> into an active workbook.
>
> I have been able to copy and paste the information while keeping the
> document closed, but I need a few other issues addressed as well.
>
> 1) I cannot make change the copy paste into a copy paste special...
> value, add.
>
> 2) Also, I need the "add" feature because I want to create a loop
> that pulls the same range from the same sheet in duplicate workbooks.
> The only difference is that the workbooks are named in sequential
> order, for example: 1.xls, 2.xls, 3.xls, etc... Can I reference the
> 1,2,3...?
>
> Is there a was to create a loop that will follow these rules? The
> excel files would all be in the same file ie C:\data.
>

 
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 Paste failed in excel file migrated from Excel 2003 to Excel Handong Chen Microsoft Excel Crashes 1 4th Mar 2010 06:05 PM
Copy values (loop) from TXT file to excel djenzovoort@gmail.com Microsoft Excel Programming 9 24th Apr 2007 12:25 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
Macro to Copy & Paste a Excel file DNKMCA Microsoft Excel Discussion 1 4th Oct 2005 01:54 PM
Can't copy and paste in large file using Excel 97 Brian Allen Microsoft Excel Crashes 2 24th Jun 2004 07:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:21 AM.