PC Review


Reply
Thread Tools Rate Thread

copy&paste of several sheets in a folder to a workbook with somesh

 
 
=?Utf-8?B?UmF5?=
Guest
Posts: n/a
 
      1st Jun 2007
Hi, guys,

I need to copy and paste several sheets in different workbooks in a folder
to a old workbook with some other sheets.

Using Ron's Copy sheet from each workbook, I could only creat a new workbook
with the sheets I need. I can add the sheets to my old workbook?

Thanks a lot.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      1st Jun 2007
Someplace in Ron's code there's a line for BaseBook (he uses the variables to
make things easier).

He has something like:

set basebook = workbooks.add(...)

Instead, you could use:

set basebook = workbooks("oldworkbooknamehere.xls")

then test it out.

Ray wrote:
>
> Hi, guys,
>
> I need to copy and paste several sheets in different workbooks in a folder
> to a old workbook with some other sheets.
>
> Using Ron's Copy sheet from each workbook, I could only creat a new workbook
> with the sheets I need. I can add the sheets to my old workbook?
>
> Thanks a lot.


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?UmF5?=
Guest
Posts: n/a
 
      4th Jun 2007
Thanks a lot, Dave.


"Dave Peterson" wrote:

> Someplace in Ron's code there's a line for BaseBook (he uses the variables to
> make things easier).
>
> He has something like:
>
> set basebook = workbooks.add(...)
>
> Instead, you could use:
>
> set basebook = workbooks("oldworkbooknamehere.xls")
>
> then test it out.
>
> Ray wrote:
> >
> > Hi, guys,
> >
> > I need to copy and paste several sheets in different workbooks in a folder
> > to a old workbook with some other sheets.
> >
> > Using Ron's Copy sheet from each workbook, I could only creat a new workbook
> > with the sheets I need. I can add the sheets to my old workbook?
> >
> > Thanks a lot.

>
> --
>
> Dave Peterson
>

 
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 and paste sheets to new workbook Stav19 Microsoft Excel Programming 14 9th Jun 2010 11:36 PM
Copy, Paste Special Values all sheets in workbook sharon_hutchison@standardlife.com Microsoft Excel Programming 4 27th Sep 2007 04:22 PM
Copy and paste sheets between workbook =?Utf-8?B?YW5hbWFyaWUzMA==?= Microsoft Excel Programming 2 22nd Jun 2007 04:17 PM
copy all and paste values for all sheets in a workbook cass calculator Microsoft Excel Worksheet Functions 6 1st Jun 2007 02:58 PM
copy/paste values for all sheets in workbook cass calculator Microsoft Excel Programming 2 31st May 2007 11:36 PM


Features
 

Advertising
 

Newsgroups
 


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