+ Reply to Thread
Results 1 to 2 of 2

Locking Spreadsheets for User Editing but not edits via code

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    Anywhere
    MS-Off Ver
    Office 2007
    Posts
    7

    Locking Spreadsheets for User Editing but not edits via code

    I have a workbook with multiple sheets that are populated via autofilter of the first sheet. I want to make it so that the sheets 2-sheets x can only be edited by the VBA code and not by any user accessing the workbook. Any tips?

    Password protecting the sheets results in an error message from the code.

    Thank you in advance!

    Lux

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Locking Spreadsheets for User Editing but not edits via code

    Lux,

    Apply the protection using VBA, setting UserInterfaceOnly to True: then you can use VBA to change the sheets

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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 tables for editing
    By superchew in forum Access Tables & Databases
    Replies: 1
    Last Post: 11-21-2014, 11:29 PM
  2. Sheets array code only edits one sheet. Please help
    By baby_kay_2003 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-12-2014, 03:48 AM
  3. VBA - Locking sheet for editing with macro
    By djsouljah in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2014, 11:08 PM
  4. VB Excel Macro That Edits Itself Code
    By ashleys.nl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2011, 08:15 AM
  5. Locking ActiveX textbox from editing
    By 79p930 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2011, 07:50 PM
  6. Locking and Editing Cells
    By jmozulay in forum Excel General
    Replies: 0
    Last Post: 10-19-2007, 08:40 AM
  7. Excel 2003 not locking speadsheet for editing
    By webbmeister in forum Excel General
    Replies: 0
    Last Post: 06-19-2007, 06:00 AM

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