+ Reply to Thread
Results 1 to 2 of 2

Pasting into password protected sheets.

  1. #1
    Registered User
    Join Date
    03-14-2007
    Posts
    21

    Pasting into password protected sheets.

    Hello,
    I have a multiple page workbook. I have a macro that will copy information from a source sheet within the workbook into another sheet within the workbook, based on certain criteria. When the destination sheet is password protected the macro will encounter an error when trying to paste into the destination sheet, regardless of whether the destination cells are locked or not.

    Is there a way to password protect the destiantio sheet while still allowing the macro to paste into it?
    Thanks,
    ~Adam D.

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,799
    No, but in your macro's code you can unprotect the sheet, paste the data and then re-protect it without any user interaction. (If you're going to do this, you would need to save the password in the macro code, so you'll probably want to protect the vba project itself with a password.)

    The code would look like:
    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