+ Reply to Thread
Results 1 to 2 of 2

Macro to Protect unprotect tables

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Macro to Protect unprotect tables

    Hello,

    I have 4 tables (Table1, Table2, Table4 and Table5). I need to unprotected the cells in those 4 tables and protected them back.

    Would you know how to do that? I would need that macro to insert it in my existing one.

    many thanks in advance,
    Graig

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro to Protect unprotect tables

    Hello graiggoriz,

    The macro code below can be called from your current macro. You should change the password, worksheet name, and table names to match what you will be using.

    Add a new VBA module to your workbook and paste the code into it. Add calls to this macro in your existing code where needed.
    Please Login or Register  to view this content.
    Calling Examples
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    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.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. [SOLVED] Macro to Unprotect and Protect
    By MBeedle in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-22-2013, 01:32 AM
  2. [SOLVED] Protect / Unprotect Macro
    By jason.hampton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2012, 11:53 AM
  3. [SOLVED] Protect / Unprotect Macro
    By jason.hampton in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-06-2012, 03:36 AM
  4. Macro to Protect and UnProtect
    By mmacw in forum Excel General
    Replies: 2
    Last Post: 02-13-2007, 04:39 PM
  5. [SOLVED] unprotect and protect within a macro
    By Staalkop in forum Excel General
    Replies: 4
    Last Post: 10-27-2005, 04:05 PM

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