LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default how do I copy worksheets between workbooks without the macros?

I'm using Excel 2003 and have a function that exports worksheet tabs from one
workbook to another using the copy method. Turns out that it copies
EVERYTHING - vba code, formatting, the whole nine yards. Since I want to
keep the formatting (for display and print), is there a way I can block the
vba code from copying so that when my users open the new workbook, they don't
get an error message because the vba code couldn't find a worksheet that I
didn't (and don't want to) copy?

Copy code:
curBook.Sheets(Array(tabname)).Copy befo=newBook.Worksheets(1)
 
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
Copy worksheets from several workbooks into one workbook DSK 604 via OfficeKB.com Links and Linking in Excel 1 May 30th 10 03:47 PM
Need macros for copy data into new workbooks Hardeep_kanwar[_2_] Excel Discussion (Misc queries) 2 August 30th 08 04:55 AM
Copy/ move selected data from workbooks to seperate worksheets or workbooks Positive Excel Worksheet Functions 1 August 30th 07 04:54 PM
cannot copy and paste worksheets or workbooks Tim Excel Discussion (Misc queries) 1 March 29th 05 07:17 PM
Protecting worksheets with Macros in Shared Workbooks Dancing Fish Excel Programming 1 January 31st 04 03:51 AM


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

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"