+ Reply to Thread
Results 1 to 4 of 4

Locking cells except through Export through Userform

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    66

    Locking cells except through Export through Userform

    Hi Experts,

    I have attached my Userform excel file. Had a question.
    I do not want any users to be able to edit the Commentary and Analysis worksheet tab. They should be able to edit it only by the Userform when they hit 'Export to Excel' button.

    Is it possible to lock the file in such a way?

    Thanks and Regards,
    Aaron Mendes
    Attached Files Attached Files
    Last edited by aaron.mendes; 11-04-2013 at 01:44 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Locking cells except through Export through Userform

    Hi aaron

    Add this Code to ThisWorkbook Moduke
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    07-01-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Locking cells except through Export through Userform

    Hi John,

    Thanks, That worked like a charm. But i have a small problem. This file is going to be used as a Shared File. And i did a test run with some users and it is creating a problem of overwriting data by users. Can i overcome this problem by a code or something.

    Thanks for your help. I'm very new to macros and codes still.

    Thanks,
    Aaron

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Locking cells except through Export through Userform

    Hi Aaron

    See this discussion regarding Shared Files...

    http://blog.contextures.com/archives...ooks-in-excel/

+ 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. Locking specific cells eventually changing to locking all cells
    By davidingilbert in forum Excel General
    Replies: 1
    Last Post: 03-19-2013, 06:50 PM
  2. Help with macro, automatical locking cells when excel is closed but only locking 1 sh
    By snoopy1461 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2011, 11:29 AM
  3. Need Protecting/locking of headers from overwrite by userform.
    By rocki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2008, 06:52 PM
  4. [SOLVED] locking formula in cells in without locking whole sheet
    By SuziQ in forum Excel General
    Replies: 1
    Last Post: 07-21-2006, 11:05 AM
  5. [SOLVED] UserForm locking up
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2006, 01:55 PM

Tags for this Thread

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