+ Reply to Thread
Results 1 to 2 of 2

Skip trying to paste over locked cells when pasting over a whole column

  1. #1
    Registered User
    Join Date
    08-23-2013
    Location
    Portland, ME
    MS-Off Ver
    Excel 2010
    Posts
    1

    Skip trying to paste over locked cells when pasting over a whole column

    Hello,

    I have a formatted budget vs actual income statement that has subtotals in the appropriate spots. I would like to be able to paste over the entire column with updated data, but not write over the formulas. For instance, in one spreadsheet I have the data for the month of June and in another I have the data for the month of July. Both have the same number of rows, but are formatted slightly differently. I want to be able to replace the June data with the July data.

    My first thought was to lock the cells with the formulas, protect the sheet and then paste over the entire column, but I get the following error:

    The cell or chart that you are trying to change is protected and therefore read-only.

    To modify a protected cell or chart, first remove protection using the Unprotect Sheet command (Review tab, Changes group). You may be prompted for a password)
    Any suggestions?

    Thank you!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Skip trying to paste over locked cells when pasting over a whole column

    you could include an IF() statement that tests for a word - say Total - in column A (or wherever), such that if found, it uses the subtotal function, if not found, it uses your other formula/function?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] How to skip an entire column when copy pasting from another sheet
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-21-2013, 01:25 PM
  2. Skip locked/protected row when copying information to entire column
    By WWRepair in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2013, 03:21 PM
  3. [SOLVED] Offset does not skip locked cells
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2012, 07:17 AM
  4. How do I skip cells when copying and pasting functions?
    By indolence in forum Excel General
    Replies: 2
    Last Post: 05-20-2009, 02:06 AM
  5. Locked cells after pasting
    By oneyejack in forum Excel General
    Replies: 2
    Last Post: 05-26-2007, 08:10 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