+ Reply to Thread
Results 1 to 14 of 14

Copy an entire range and make it uneditable

  1. #1
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Copy an entire range and make it uneditable

    I'm not sure if this is going to work but:

    I have a company schedule on Worksheet 1. It has days, dates, months, jobs etc. in Rows 1-5. There is a variety of formatting present - for example, weekends are filled a certain colour, as are certain jobs.

    What I want to do is to have these five or so rows copied onto several other worksheets, including their formats, but make them uneditable.

    So if you want to change a job, you can do it on worksheet 1 and can't do it on worksheet 3. But when you change a job on Worksheet 1, it also changes on worksheet 3.

    Does that make sense?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy an entire range and make it uneditable

    Give a try to this.
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Copy an entire range and make it uneditable

    Hi,

    Thanks. It works, but I need it to do it constantly - so changes in "Sheet 3" are made 'live'. So rather than copying and pasting "Sheet 1 A1" into "Sheet 3 A1" on demand, I guess I simply want "Sheet 3 A1" to just always replicate "Sheet 1 A1".

    I know I could do it with a basic in-cell formula (='Sheet 1'!A1) but the moment anyone copies and pastes anything on Sheet 1 in messes up all the maths. So I figured if there was a way of simply saying that the whole of Row 1 on Sheet 3 should always be a duplicate of Row 1 on Sheet 1 that would solve my problem.

    Am I making sense? Sorry if it wasm't/isn't clear!

    G

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy an entire range and make it uneditable

    Then this should works.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Copy an entire range and make it uneditable

    Hi,

    I'm struggling to make it do what I'm after. It might be partly to do with not understanding completely where the VBA should go.

    See attached basic example. I put the code in WS3Schedule Macro Test 1.xls

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy an entire range and make it uneditable

    We need a new module for this. User has to click a button in sheet1 every time that wants the sheet 3 to be updating..

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Copy an entire range and make it uneditable

    Hi,

    Thanks, that works.

    Is it possible to make the Macro run at the point at which I activate Sheet3 rather than the button? So it the copy/paste process works at the point at which I swap from Sheet1 to Sheet3. Is that possible?

    G

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy an entire range and make it uneditable

    In sheet3 private module, this usually works..but not now...Sorry!

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Copy an entire range and make it uneditable

    or
    in worksheet3, view code, worksheet-activate copy paste it
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  10. #10
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Copy an entire range and make it uneditable

    It does if I change 'try' to this:

    Please Login or Register  to view this content.
    I've taken out the various protection bits to help me understand what's going on. I'll now figure out how to put them back in :-)

    Thanks for all your help. I hoped there was an easy way of simply saying "Sheet3 A1 = Sheet1 A1" but it seems not!

    Many thanks

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy an entire range and make it uneditable

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also,, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  12. #12
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Copy an entire range and make it uneditable

    One more thing! Sorry if this should be in a new post now I've marked it 'solved'....

    In row 1 (starting at B1) are dates in Excel format. When the copy/paste function is complete I want to jump to the cell with today's date in it.

    I found a couple of posts on here doing a similar thing but I've failed to make the two things happen together (mostly because I'm not very good at this!).

    G

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy an entire range and make it uneditable

    Perhaps you could use Time stamp for this. or to record a macro to replace the row 1 dates in sheet3, after you run the previous macro.

  14. #14
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Copy an entire range and make it uneditable

    I found some code on the forum and managed to alter it (though a series of trial and error...) to amke it work:

    Please Login or Register  to view this content.
    ...then I put a 'call SelectDate' command after the 'try' module.

    Hurrah. Thanks to both of you. Have a good weekend

+ 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. i want to make a region uneditable if a value isn't met
    By lazerphazer21 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2013, 04:40 PM
  2. [SOLVED] If cell dropdown equals no, then make a range of cells uneditable?
    By jager in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2013, 12:47 AM
  3. [SOLVED] Make cells uneditable, with general Cut/Copy functions intact
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2006, 08:54 AM
  4. Make column uneditable
    By bharath_pepala in forum Excel General
    Replies: 3
    Last Post: 01-20-2006, 04:50 PM
  5. [SOLVED] How to Make Graphic Uneditable
    By Chaplain Doug in forum Excel General
    Replies: 2
    Last Post: 05-31-2005, 08: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