Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Paste Worksheets in Another Workbook

I need to be able to have worksheets from multiple workbooks copied
and then pasted to the end of another workbook. I have the code set
so that the user can type in the file they would like to open for
everything to be pasted to but I dont know how to have worksheets from
separate workbooks pasted in. Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Paste Worksheets in Another Workbook

Record a new macro while going through the process of copying a sheet or two
from one workbook into another, then examine that code.

You'll need to set up variables to hold the names of the workbooks. You can
paste to the end of the other workbook by using the After:= parameter and the
Worksheets.Count property of that workbook. The macro is going to show you
something like After:=Sheets(3) where 3 is the number of the sheets in the
workbook before the copy was done. You could use After:=Sheets(Sheets.Count)
to make that a variable and always copy the new sheets to the end of that
workbook.

" wrote:

I need to be able to have worksheets from multiple workbooks copied
and then pasted to the end of another workbook. I have the code set
so that the user can type in the file they would like to open for
everything to be pasted to but I dont know how to have worksheets from
separate workbooks pasted in. Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Paste Worksheets in Another Workbook

Works for me

"JLatham" wrote:

Record a new macro while going through the process of copying a sheet or two
from one workbook into another, then examine that code.

You'll need to set up variables to hold the names of the workbooks. You can
paste to the end of the other workbook by using the After:= parameter and the
Worksheets.Count property of that workbook. The macro is going to show you
something like After:=Sheets(3) where 3 is the number of the sheets in the
workbook before the copy was done. You could use After:=Sheets(Sheets.Count)
to make that a variable and always copy the new sheets to the end of that
workbook.

" wrote:

I need to be able to have worksheets from multiple workbooks copied
and then pasted to the end of another workbook. I have the code set
so that the user can type in the file they would like to open for
everything to be pasted to but I dont know how to have worksheets from
separate workbooks pasted in. Any suggestions?


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
Paste Link Worksheets YanYan Excel Discussion (Misc queries) 3 March 22nd 07 09:55 PM
paste to several worksheets Irish Excel Discussion (Misc queries) 7 June 27th 06 06:34 PM
copy and paste using code from workbook to workbook bigdaddy3 Excel Discussion (Misc queries) 2 September 14th 05 11:06 AM
Copy and Paste between 2 worksheets with VBA Dave Y Excel Worksheet Functions 2 June 15th 05 03:47 PM
I cannot paste from one workbook to another. Copy works, paste do. JimmyMc Excel Discussion (Misc queries) 1 June 10th 05 03:54 PM


All times are GMT +1. The time now is 09:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"