+ Reply to Thread
Results 1 to 6 of 6

Insert Row on Protected Sheet and Auto Copy Formulas

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Insert Row on Protected Sheet and Auto Copy Formulas

    Hi All,

    I have what seems like a simple problem. I have a protected sheet where column H and U are protected becuase they have formulas. I simply want to be able to insert a row e.g. between row 7 and 8, while the sheet remains protected and have the formulas auto fill to the new inserted row. At present I can insert rows but the formulas remain empty. Thanks

    pw= 1

    Dave
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-15-2012
    Location
    Colombia
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Insert Row on Protected Sheet and Auto Copy Formulas

    When you have a protected sheet you cant edit the data in the cells, thats include, copying a formula.Even when you tried to make a copy, it doesn't work.
    http://excelmooc.com

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Insert Row on Protected Sheet and Auto Copy Formulas

    Hi Jsuarezg,

    I'm only new to this, but from browsing the web others have gotten around the problem with Macro/VBA but I can't seem to find an example of the code.

    I would have thought that this scenario would be a common issue amongst excel users. e.g. someone creates a spreadsheet with formulas for a user/s, and wants to protect those formulas from being accidentally over written while still allowing the user to format the sheet which includes inserting lines (easily achievable) but have formulas copy down also.

    Any other suggestions?

  4. #4
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Insert Row on Protected Sheet and Auto Copy Formulas

    Hello ltradey,

    Please try this Test_01.xlsm

  5. #5
    Registered User
    Join Date
    07-09-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    7

    Re: Insert Row on Protected Sheet and Auto Copy Formulas

    Hi rskfriends,

    Thanks for the help. That's close, but I need to be able to select where the row is inserted. I found the following basic code which simply copies to row below/above. Ideally after inserting I would like the code to remove everything from the cells except for the formula cell. Any ideas?

    Is there also an option to delete a row with another macro?

    Sub test()
    ActiveSheet.Unprotect "1"
    With ActiveCell
    .EntireRow.Copy
    .Insert Shift:=xlDown
    End With
    Application.CutCopyMode = False
    ActiveSheet.Protect "1"
    End Sub

  6. #6
    Registered User
    Join Date
    09-02-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Insert Row on Protected Sheet and Auto Copy Formulas

    hi ltradey

    Try this for insert & delete.
    For insert you can select cells in B column.

    Formula: copy to clipboard
    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. [SOLVED] Insert row and copy formula in protected sheet
    By impresxy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2017, 02:57 AM
  2. Insert row and then copy above formula on protected sheet
    By Rinto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2013, 02:45 AM
  3. Copy and Paste Values only, not formulas, in a protected sheet
    By YMGR in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-30-2012, 07:52 AM
  4. [SOLVED] auto insert rows and copy formulas
    By shocks24 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-23-2012, 04:19 PM
  5. [SOLVED] Auto Insert Rows and copy formulas
    By shocks24 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-11-2012, 02:50 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