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

Is it possible to import a whole sheet from one xls to another,
including the colours, layout and any comments associated with cells?

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

Kirk,
Open your source and destination WBs, then record a macro when you
right-click the WS to be copied Move or Copy Check the "Create a Copy"
box Select the "To book" and "Before sheet" options OK.
See the VBA code generated.

NickHK

"kirkm" wrote in message
...
Is it possible to import a whole sheet from one xls to another,
including the colours, layout and any comments associated with cells?

Thanks - Kirk



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

of course. just copy sheet.

Sheets("sheetname").Copy

regards,
julian

kirkm wrote:
Is it possible to import a whole sheet from one xls to another,
including the colours, layout and any comments associated with cells?

Thanks - Kirk


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

Click with your right mouse at the sheet you want to copy (I mean below
where you can click to the other sheets, sheet 1, sheet2,e tc..).
- Choose 'move or copy'
- Check create a copy
and select from the dropdown 'new book'

voila!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Importing a Sheet

If you click in the left hand square, left click, then right click,
copy.

Go to the new workbook and select A1 and paste special - All, this
should do the trick.


To code it just record it.

Stopher



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Importing a Sheet

Hi Kirk,

Don't reinvent the wheel, "steal" some code:
http://www.erlandsendata.no/english/...batextimportwb

HTH,
Bernd

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 excel sheet Viju Gopal Excel Discussion (Misc queries) 0 August 31st 06 05:47 PM
Importing data from the active sheet w/ c# Adrian Paul Excel Programming 1 August 16th 06 04:17 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 01:03 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"