+ Reply to Thread
Results 1 to 4 of 4

Protecting the worksheet: Run-time error

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    Scotland
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Protecting the worksheet: Run-time error

    Hi,

    I have protected my worksheets on my excel. I have two worksheets, one called 'launch' and one called 'data', both locked using the same password. This obviously caused an error when the userform attempted to send data into the worksheets.

    I have tried the two following pieces of code:

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    I have also changed the 'write password' property of the worksheet to match the password for the worksheets, but still nothing. I am getting a run-time error 1004.

    Thanks to anyone that can help, maybe missing something simple..

  2. #2
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Protecting the worksheet: Run-time error

    Show the code from the userform.

  3. #3
    Registered User
    Join Date
    07-10-2014
    Location
    Scotland
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Re: Protecting the worksheet: Run-time error

    Hi Blokeman, thanks for replying

    My code is too long to include. Can you be specific as to which section(s) of code you want to see? Thanks for your help, Ali.

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

    Re: Protecting the worksheet: Run-time error

    I suspect any of the sheet is protected with someother password.

    Un-protect the sheets manuall and try protecting it via code and check


    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

+ 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. Run-time error 1004 when protecting sheet
    By BVT3030 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:42 PM
  2. Replies: 1
    Last Post: 09-16-2011, 05:59 AM
  3. Error message when protecting worksheet
    By datafiend in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2010, 10:16 PM
  4. Error 1004 after protecting worksheet
    By wgjvvenrooij in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2008, 12:09 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