LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
csimont
 
Posts: n/a
Default Copying worksheets to a new workbook

Hi!
I am getting a debug error message on this line:
Next wSht
Sheets(1).Copy beof=Sheets(1)
Sheets(1).Name = shtName

Sheets(shtName).Move = Workbook : This is line.

I changed it from the original code and I cannot see the error of my ways.
The macro does take the active worksheet and creates a new workbook but the
error message comes up before I can continue to work with the data.

Can anyone help?
 
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
Is there a way to sort worksheets within a workbook Mim Excel Discussion (Misc queries) 6 October 23rd 07 03:48 PM
Excel should let its worksheets be arranged (tiled) in a workbook Stephen Flanders Excel Worksheet Functions 1 January 19th 06 07:20 PM
Copying A Worksheet From Each Open Workbook to an new Workbook carl Excel Worksheet Functions 1 January 3rd 06 05:37 PM
Copying the format within a worksheet to all in a workbook Ian Wormald Excel Discussion (Misc queries) 1 February 23rd 05 01:19 PM
copying cells from other worksheets yesbob Excel Discussion (Misc queries) 1 February 7th 05 05:18 PM


All times are GMT +1. The time now is 02:20 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"