+ Reply to Thread
Results 1 to 3 of 3

protect cells

  1. #1
    Souris
    Guest

    protect cells

    I would like to protect some cells to avoid user to modify information.

    My copy method fails, if I use protect and unprotect.

    I use Protection.AllowEditRanges.Add to write information on the cells using
    VBA.

    It seems VBA can not copy data in to the cellls which protect and unprotect
    or AllowEdirRanges.

    Am I right?
    If I am wrong please advise me,
    Any information is great appreciated,


  2. #2
    Nigel
    Guest

    Re: protect cells

    You are right, you must unprotect before you copy, you can then re-protect
    after.

    --
    Cheers
    Nigel



    "Souris" <[email protected]> wrote in message
    news:[email protected]...
    > I would like to protect some cells to avoid user to modify information.
    >
    > My copy method fails, if I use protect and unprotect.
    >
    > I use Protection.AllowEditRanges.Add to write information on the cells

    using
    > VBA.
    >
    > It seems VBA can not copy data in to the cellls which protect and

    unprotect
    > or AllowEdirRanges.
    >
    > Am I right?
    > If I am wrong please advise me,
    > Any information is great appreciated,
    >




  3. #3
    Souris
    Guest

    Re: protect cells

    It seems that AllowEditRanges does not allow copy either.

    I need delete AllowEditRange and unprotect spreadsheet to do copy method.



    "Nigel" wrote:

    > You are right, you must unprotect before you copy, you can then re-protect
    > after.
    >
    > --
    > Cheers
    > Nigel
    >
    >
    >
    > "Souris" <[email protected]> wrote in message
    > news:[email protected]...
    > > I would like to protect some cells to avoid user to modify information.
    > >
    > > My copy method fails, if I use protect and unprotect.
    > >
    > > I use Protection.AllowEditRanges.Add to write information on the cells

    > using
    > > VBA.
    > >
    > > It seems VBA can not copy data in to the cellls which protect and

    > unprotect
    > > or AllowEdirRanges.
    > >
    > > Am I right?
    > > If I am wrong please advise me,
    > > Any information is great appreciated,
    > >

    >
    >
    >


+ 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