+ Reply to Thread
Results 1 to 7 of 7

SAVE AS :Then protect all sheets

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Lightbulb SAVE AS :Then protect all sheets

    Hi,

    I am creating one file through my macro
    Please Login or Register  to view this content.
    I WANT TO PROTECT ALL the sheets in newly created worksheet that is (Report_*).
    Means user can view the file but he will not be able to select any cell

    Please suggest.

    Thanks


    Tanya

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: SAVE AS :Then protect all sheets

    Hello there,

    The following lines of code should do it.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: SAVE AS :Then protect all sheets

    Thanks!!
    But when i am combining your code with my code its not working.
    I cant skip my code because I have to save those sheets.

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: SAVE AS :Then protect all sheets

    Try the following:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: SAVE AS :Then protect all sheets

    thanks its working.
    But please add to my information
    when i am adding
    Please Login or Register  to view this content.
    at the end after saving it is again asking you want to save the changes yo made.
    I dont want that pop up so how to disable that pop up???

  6. #6
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: SAVE AS :Then protect all sheets

    Add try to the end of the string of code, this will tell the code that you want to save, false would indicate not to save changes.

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: SAVE AS :Then protect all sheets

    If this completes your questions please mark this thread SOLVED and maybe give a little star tap if I have helped. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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