+ Reply to Thread
Results 1 to 6 of 6

Insert row for table on protected worksheet

  1. #1
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Insert row for table on protected worksheet

    Hello,

    I'm trying to insert a row by hitting tab on the last column of a table. With the workbook unprotected this works perfect (moves my formulas down, copies my data validation list, etc.) but when I protect the worksheet to ensure certain cells are not cleared and also to hide my formulas, it seems to disable the ability to add a new row to the table. Is this something that i will need a macro to accomplish or is there a better way?

    Any help is much appreciated.

    Thank you,

    - Justair

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Insert row for table on protected worksheet

    Hello Justair07,

    While protecting your Sheet, make sure to include the Option of "Inserting Rows".
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: Insert row for table on protected worksheet

    The "Inserting Rows" is selected but it still won't work. I did some research and it seems to be a common issue.

    I put together the following code:

    Please Login or Register  to view this content.
    but i keep getting a debug error on the following line:

    Please Login or Register  to view this content.
    I'm stuck

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Insert row for table on protected worksheet

    Thank you for the feedback.

    Could you please upload a sample of your WorkBook, with all you code, for us to have a look at?

  5. #5
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: Insert row for table on protected worksheet

    No problem. There is not much code but it's all I have so far. I'm fairly new to VBA.

    Thank again,
    Attached Files Attached Files
    Last edited by Justair07; 07-22-2013 at 12:47 PM.

  6. #6
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: Insert row for table on protected worksheet

    This code works perfect and is placed in a module.

    Please Login or Register  to view this content.
    This code is then placed in the workbook as a private sub:

    Please Login or Register  to view this content.

+ 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. Copy and paste insert rows with protected cells in protected worksheet
    By excel_gecko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2012, 05:50 PM
  2. Macro to insert new row in Excel 2010 table (ListObject) in protected worksheet
    By kinsley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2012, 02:57 PM
  3. Replies: 8
    Last Post: 12-11-2009, 04:36 PM
  4. Insert comment in protected worksheet
    By The Tuner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 12:05 AM
  5. Worksheet Protected - how to insert a row?
    By bondcrash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2005, 01:35 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