+ Reply to Thread
Results 1 to 16 of 16

Can You Limit Input to One Time?

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Can You Limit Input to One Time?

    Hi everyone! I have a question, and I'm really hoping there's a way to do this...I have a sheet that I'd like to make only allow an entry one time. What I'd like to do is either put a button in, or a dropdown, or a check box, or something, that would then copy a series of cells and not allow the cells (that it has copied) to be modified again, preferably in so doing to make it so that it would copy the same cells again but to a new range, leaving the old one in place.

    If possible, I'd really like to do this without macros as well, but if it's not possible without but is possible with, that would be preferable to not getting it to do it at all. I'm using Excel 2013 on Windows 8.1. Thanks in advance!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can You Limit Input to One Time?

    Hi,

    You seem to imply that the series of cells you'll be copying will change? Is that correct?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    It will, yeah. The cells that would be copied are derived from choices users make in multiple dropdowns in other cells. What I'm trying to do is capture the values of those cells when the button is pressed/box is checked/etc. to preserve the values at that moment, but allow the cells that are copied from to be changed further without overwriting the copy made by the button/check box/etc.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can You Limit Input to One Time?

    ... and I should have asked if this functionality is required for each individual row independently or for a whole range.

    i.e. are you wanting to copy say A1 to C1 independently of A2 to C2 A3 to C3 ,...etc depending on a choices in B1, B2, B3 etc. or are you wanting to copy A1:A10 to C1:C10 depending on a single check button/cell

    Perhaps it would help if you'd upload a simple example containing your data and the results you expect to see as the first time copy and what you want to see as subsequent copies. And are subsequent copies also to be retained. i.e. each time you decide to preserve a value/values by clicking something do the second and subsequent copes go to say C1, D1, E1, F1 etc.

    I feel intuitively that this will need a macro but let's see the workbook first.

  5. #5
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    Whole range - one click to move A1:A10 to C1:C10.

    I would like to preserve subsequent copies as well, yes. And...ok, I can send you the whole thing if you want, but it's a pretty complicated sheet - if you want a simple example, it'd be basically:

    A B C D
    1 Button 9
    2 5
    3 7
    4 12
    5 30
    6 4
    7 87
    8 2
    9 0

    So this is what it would be like before button press, with column B being the cells that are grabbed. After button press:

    A B C D
    1 Button 9 9
    2 5 5
    3 7 7
    4 12 12
    5 30 30
    6 4 4
    7 87 87
    8 2 2
    9 0 0

    Cell values for B have been copied to C. Now, column B changes based on the user inputs from other things that feed column B:

    A B C D
    1 Button 12 9
    2 3 5
    3 75 7
    4 8 12
    5 2 30
    6 19 4
    7 65 87
    8 3 2
    9 9 0

    Press the button again, and you get:

    A B C D
    1 Button 12 9 12
    2 3 5 3
    3 75 7 75
    4 8 12 8
    5 2 30 2
    6 19 4 19
    7 65 87 65
    8 3 2 2
    9 9 0 9

    Column B has once more been copied, this time to column D, but column C remains at its previous values that were fetched the first time the button was pressed. This would continue on each time you pressed the button, with the third click filling column E and leaving columns C and D as they had been initially copied, the fourth filling column F and leaving columns C,D, and E as they wre initially filled, etc. And it doesn't have to be a button, that just seems like the most logical - if it could be a dropdown, or a check box, or anything like that it'd be fine. Preferably not a macro (because macros break some of my users' systems for some reason) but if there's no other way, then macro it is.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can You Limit Input to One Time?

    Hi,

    I can't think of any easy way of doing this with mere functions but maybe someone else can think outside the box and come up with something. The main requirement is to change a cell, click a button or some trigger or other and this does imply a sheet change event macro.

    A simple macro like this attached to a button is one way.

    Please Login or Register  to view this content.
    changing B2:B10 as appropriate.

  7. #7
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    Mmkay, thanks! Just so I know, if I wanted the copying to stat at, say, column M but the original be in B still, would I just replace CurrentRegion?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can You Limit Input to One Time?

    Hi,

    No, use

    Please Login or Register  to view this content.
    instead.

  9. #9
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    Hmm...ok, so I tried that, but it's copying the forumlae that determine the results into the new cells, rather than their results. Is there a way to make it grab just the actual results instead (like the INDIRECT() function does)?

  10. #10
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    It's also changing the numbers when they change on the original input instead of copying their values at the time the button is pressed and then locking them in.

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can You Limit Input to One Time?

    Hi,

    Ah, I didn't see you'd mentioned that the data you want to copy are formulae rather than manually entered or imported data.

    Please Login or Register  to view this content.
    make sure that there is at least one blank column between column B & L

  12. #12
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    Perfect! ^_^ Thank you so much!

  13. #13
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    You're gonna want to kill me... <_< Ok, so...this is working great, and I can definitely make what I want to do happen with it, but I think I found a better way to do it from an ease-of-use standpoint.

    So...what I would want the whole thing to do, if I could figure out how (and I totally understand if you don't want to mess with this) is this, in order...


    1) Copy the present value of cells X2:X16 to cells CL2:CL16
    2) Search cells J32:J38 for "String 1" and, if found, replace it with "String 2" and go to step 5, otherwise go to step 3
    3) Search cells J32:J38 for "String 2" and, if found, replace it with "String 3" and go to step 5, otherwise go to step 4
    4) Search cells B24:B38 for "String 4" and, if found, increase the number in corresponding cell in column D by 1 to a maximum of 5, and add the overflow to cell CK1 (making CK1=1 if it would otherwise make the D cell a 6, =2 if CK1 already =1, etc.)
    5) If step 4 sets the corresponding D cell to 2, add "String 2" to the topmost empty cell in range J32:J38
    6) Copy the new present value of cells X2:X16 to cells CM2:CM16


    If I can make it do that, I can make it so the entire operation will be handled in one click for the end user...but I have no idea how to do it...

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Can You Limit Input to One Time?

    Hi,

    You need to upload the workbook so that I can see the request in context.

    Is this something which is a follow on from the last task once you have created the range of values or a completely new request?

  15. #15
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    Sure, I'd be happy to, it's just got a lot of stuff in there that's not really relevant to it too. But if you want to see it, here it is! ^_^

    It's...sorta...so the previous request is a way to do what I was looking for, but this new thing would be an easier (for the end-user) thing to do the thing I was wanting to use the original formula for, which (as far as I can tell) would need two separate buttons to do.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    01-21-2014
    Location
    Albuquerque, NM
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Can You Limit Input to One Time?

    Is it not possible to do that? <_<

+ 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. Limit User Input
    By Vladamir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2012, 05:44 PM
  2. [SOLVED] limit character input
    By burugudug in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-05-2010, 07:56 AM
  3. Input Parameter to set a limit
    By tuppy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-28-2008, 08:33 PM
  4. Size limit for input file in VBA?
    By cyc1120 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2008, 12:31 PM
  5. Limit characters in an Input Box
    By jking80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2006, 11:20 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