+ Reply to Thread
Results 1 to 5 of 5

sheet protect runtime error 1004

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    sheet protect runtime error 1004

    hi guys just started up up on my eating plan and im very close to being done (on and off here and there)
    now i have a vb code that pulls up information into a comment when a food is selected from a drop dow box.
    after i sheet protect my workbook when ever i do so it comes up with the runtime error 1004 and sends me to the vb side of excel. is there any way to get around this?
    also on saturday and sunday pages i done something i cant pull up all the info in a drop down box (its sending me crazy)
    workout2.xlsm

  2. #2
    Registered User
    Join Date
    01-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: sheet protect runtime error 1004

    the sat/sun part fixed

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: sheet protect runtime error 1004

    any help on the error guys?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: sheet protect runtime error 1004

    I am unable to understand what issue you are facing

    But I am afraid you are using the sheet change event code on each sheets which can be done in a single code in ThisWorkbook Code.

    Copy and paste the below code in THISWORKBOOK alone and remove all the code which you made in every sheets

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: sheet protect runtime error 1004

    Hi... i think what is missing in your code is this:

    Sheets("Sheet1").Unprotect Password:="PasswordGoesHere"
    'Rest of your code goes here
    Sheets("Sheet1").Protect Password:="PasswordGoesHere"

    add this to your code and you will get the error 1004 out.

+ 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