Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Importing Sheet


What's the best way to move a whole sheet from one .xls to another?

Can you click and drag ? Or use code ?

The move, insert, copy options seen to be only within the same .xls

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Importing Sheet

The code found here works well for me.

http://www.rondebruin.nl/copy7.htm

"kirkm" wrote:


What's the best way to move a whole sheet from one .xls to another?

Can you click and drag ? Or use code ?

The move, insert, copy options seen to be only within the same .xls

Thanks - Kirk

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Importing Sheet

hi
manually, coping the sheet then pasting it into a new book works good.
with code...
Sub addmore()
ActiveSheet.UsedRange.Copy
'Cells.Copy' or copy the whole sheet
Workbooks.Add
'Worksheets.Add'or to a new sheet in the same book
Range("A1").PasteSpecial xlPasteAll
msgbox "Done"
End sub
which is best? both work....how often do you do this or need to do this?

Regards
FSt1

"kirkm" wrote:


What's the best way to move a whole sheet from one .xls to another?

Can you click and drag ? Or use code ?

The move, insert, copy options seen to be only within the same .xls

Thanks - Kirk

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Importing Sheet


Many thanks for the help, guys. I did have difficulty with both
suggestions though.... then I figured out how the in-built
Move/Copy dialog worked.

Instead of 'Move Selected sheet" (which you don't do)
it should say 'Move Active sheet' then the Before Sheet list
and the To Book dropdown all starts to make sense.

Cheers - Kirk
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
Importing a Sheet kirkm[_6_] Excel Programming 5 September 28th 06 11:48 AM
Importing excel sheet Viju Gopal Excel Discussion (Misc queries) 0 August 31st 06 05:47 PM
importing data from other sheet koldtooth Excel Discussion (Misc queries) 3 June 14th 06 03:46 PM
importing on protected sheet? Robert Excel Worksheet Functions 1 February 27th 06 12:31 PM
Importing a sheet? olly Excel Programming 0 July 10th 03 08:16 AM


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

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

About Us

"It's about Microsoft Excel"