+ Reply to Thread
Results 1 to 2 of 2

VBA code to automatically lock a table on excel

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    Accra, Ghana
    MS-Off Ver
    windows xp
    Posts
    1

    VBA code to automatically lock a table on excel

    Please can any body help me to write a VBA code that locks an excel table and still the table canbe updated from its original source.

  2. #2
    Forum Contributor
    Join Date
    06-09-2011
    Location
    Germany
    MS-Off Ver
    Excel 2016
    Posts
    194

    Re: VBA code to automatically lock a table on excel

    Hi Enoch Antwi,

    just insert the following line in your code (replace "MyPassword" with your password, or leave this part blank if its not required)
    Please Login or Register  to view this content.
    To Unprotect use the following code:
    Please Login or Register  to view this content.
    Theo
    Remember To Do the Following....
    1. Upload sample files
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

+ 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. Lock code in excel vba
    By vutienhp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-22-2015, 05:39 PM
  2. [SOLVED] Lock and protect selected excel rows with VBA code
    By SmallJack in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 04-15-2015, 09:06 PM
  3. [SOLVED] Automatically sort table with VBA code
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2015, 11:03 PM
  4. Code to automatically add new email addresses to a table
    By Jetset123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 10:18 PM
  5. Lock cells after Today's date passed (VBA excel code)
    By rt1306 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2009, 01:59 PM
  6. code the following - down list to automatically fill table
    By blue_sky_70 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2008, 09:21 PM
  7. [SOLVED] lock code in excel EX(hyperlinks)
    By IAN R in forum Excel General
    Replies: 0
    Last Post: 05-31-2005, 06:05 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