+ Reply to Thread
Results 1 to 4 of 4

Error- Running a Macro on a Protected Sheet

  1. #1
    Registered User
    Join Date
    06-18-2007
    Posts
    14

    Exclamation Error- Running a Macro on a Protected Sheet

    This is an issue as I know that if I don't password protect the tab (sheet) I'm going to have the user play around with the cells, etc. But the thing is that if I password protect the sheet then I get an error message when I try to run the macro.

    As usual, any help/idea/comments or suggestion are of great help...

    Nacho
    Last edited by nacho; 06-20-2007 at 08:02 PM. Reason: Misspelled

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    At the beginning of your macro add the line
    Please Login or Register  to view this content.
    At the end, add
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-18-2007
    Posts
    14
    Great help!!! It worked like a charm

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Glad I could assist. Just so you know, if you don't protect your VBA Project, the casual user could open the VBA code window and view your password since it's in plain text. To prevent this, open the VBA window, select your workbook in the left-hand pane, then click Tools -> VBA Project Properties. Click the Protection tab, then check the box for 'Lock project for viewing', and set a password in the two boxes below. Once you save and close your sheet the protection will be in effect. (Just don't forget the password!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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