+ Reply to Thread
Results 1 to 4 of 4

Create a new workbook for every worksheet starting with "E" and password protect

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    Manchester, London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Create a new workbook for every worksheet starting with "E" and password protect

    Good morning, below i have put the code that im trying to use so that it will copy each worksheet that starts witht the letter "E" into a new workbook then password protect the document, close it then move on to the next worksheet. What i have put together doesnt seem to work, can someone tell me where it is going wrong. many thanks in advance.

    Please Login or Register  to view this content.
    Last edited by Darth Raven; 02-19-2014 at 06:19 AM.

  2. #2
    Registered User
    Join Date
    07-29-2013
    Location
    Manchester, London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Create a new workbook for every worksheet starting with "E" and password protect

    Apologies im new!!

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Create a new workbook for every worksheet starting with "E" and password protect

    Try replacing ActiveSheet.Copy with ws.Copy.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    07-29-2013
    Location
    Manchester, London
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Create a new workbook for every worksheet starting with "E" and password protect

    Thanks for the info norie
    Its now saying that there is a problem with my saving path... HELP!!!!!!

+ 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. [SOLVED] Activate "sorting" feature when worksheets are setup to "password protect" itself
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2012, 09:04 PM
  2. [SOLVED] OT I would want protect my sheets of excel from a "password recovery" software... How?
    By -= Luca =- in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2006, 05:10 AM
  3. I would want protect my sheets of excel from a "password recovery" software... How?
    By -= Luca =- in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2006, 09:10 PM
  4. Replies: 1
    Last Post: 06-26-2005, 04:05 AM
  5. [SOLVED] ActiveWorkbook.Protect password:=range("rangename") does not work
    By WimR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2005, 04:05 AM

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