+ Reply to Thread
Results 1 to 4 of 4

Delete sheets and create a new workbook in Shared Workbook.

  1. #1
    Registered User
    Join Date
    12-07-2013
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    91

    Delete sheets and create a new workbook in Shared Workbook.

    Hi All,

    I wrote a code in unshared workbook and it works fine. But when i make it shared i get Run-time error '1004' Delete method of worksheet class failed.

    The Deleting of worksheet only occurs once (when the new wb is created) so is there i can unshare and share it back when the process is complete?

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    12-07-2013
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    91

    Re: Delete sheets and create a new workbook in Shared Workbook.

    So if i were to leave the source WB as unshared, and then share it when new WB is created, do i need to just turn on sharing when the newWBK is saved? i put the following code in but getting error again
    new code
    Please Login or Register  to view this content.
    replaced
    Please Login or Register  to view this content.
    Compile error: Named argument not found

  3. #3
    Registered User
    Join Date
    12-07-2013
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    91

    Re: Delete sheets and create a new workbook in Shared Workbook.

    i think im getting close. It is doing everything i ask for with the below code, however since the WB is already created it asks me to copy over the exisiting file. Is there anyway to just save without the prompt? i inserted the following code, but its asking to copy over the exisitng file.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-07-2013
    Location
    NJ
    MS-Off Ver
    2010
    Posts
    91

    Re: Delete sheets and create a new workbook in Shared Workbook.

    stupid oversight on my part. ive solved it
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Delete Sheet on a Shared Workbook
    By johnjmcnaughton in forum Excel General
    Replies: 3
    Last Post: 10-30-2013, 05:31 PM
  2. remove ability to delete in a shared workbook
    By toclare84 in forum Excel General
    Replies: 0
    Last Post: 01-23-2012, 08:36 AM
  3. Automatically Copy sheets in one workbook to create sheets in a new workbook..
    By leebarratt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2011, 03:14 AM
  4. Create multiple sheets in new workbook based on credentials in source workbook
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2011, 10:31 AM
  5. Create a menu of sheets in a shared workbook
    By RichieRich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1