+ Reply to Thread
Results 1 to 6 of 6

transferring data to a protected sheet

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Stdney,Australia
    MS-Off Ver
    Excel 2013
    Posts
    3

    transferring data to a protected sheet

    Hi

    I have a workbook which when closed makes all sheets protected. I want to be able to transfer data from Weekly Graph sheet to the Score sheet while the Score sheet is in the protected mode. If I un-protect Score Sheet first and then transfer data it works fine but if I have the Score Sheet protected it gives an error.
    need to be able to transfer data from Weekly Graph sheet to a protected sheet called Score

    Also when the workbook is closed it changes the caption on the Weekly Graph sheet commandbutton to Unprotect Sheet.How do I change the code so that on the Score sheet it also says Unprotect Sheet when workbook closed.So when I open up the workbook both buttons always say Unprotect Work Sheet (weekly Graph and Score)

    Thank you

    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: transferring data to a protected sheet

    To my knowledge you can't do what you want to a protected sheet. You best bet is to put in error handlers so that if for some reason the code fails it will always revert back to protected sheet after you have unprotected it.

    The second, I have no idea what you are wanting to do???
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: transferring data to a protected sheet

    I don't think you can change protected sheets to unprotected in code

  4. #4
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: transferring data to a protected sheet

    same as japandave. It is well protected. what is the password??


    also, sorry if the post before was a duplicate. we posted at about the same time

  5. #5
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: transferring data to a protected sheet

    "ABCD" is the password.

  6. #6
    Registered User
    Join Date
    07-12-2013
    Location
    Stdney,Australia
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: transferring data to a protected sheet

    thanks

    I not sure here but does an argument called UserInterfaceOnly help ​. If set to "true" then protection will not apply to macro's and thus allow your code to run unhindered.

    The second question - uses this code when the workbook is closed...I want to add the Score sheet to this as well

    This code below is in ThisWorkBook

    Please Login or Register  to view this content.

+ 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