+ Reply to Thread
Results 1 to 7 of 7

single cell for data entry

  1. #1
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    single cell for data entry

    This is a follow up question to a topic I had posted a few months ago. JBeaucaire and Leith, your help was tremendous on this and the resulting script has worked flawlessly. Here is a link to the original thread.

    http://www.excelforum.com/excel-prog...ata-entry.html

    Here is the script as it stands now with no modifications at all.

    Please Login or Register  to view this content.
    Currently column (S) is my data entry cell and the immediate following cells starting with column (T) are my "data collection" cells that react to column (T) input.

    I have had to add two columns directly after column (S) for other purposes and one of them (column U) contains a formula . I tweaked the code and was able to get it working again after I added the two columns but I experienced something strange. If I press the delete key in my data entry cell it wipes my formulas out of column U.

    What is the "correct" way to tweak the code so that column (T) and (U) are unaffected or ignored and column (V) being my first "data collection" column.

    With the changes that I made I was able to get it to work but I soon realized the problem with an "accidental" press of the delete key or a cut command has the same affect of wiping out my new formulas. I just need to try and prevent accidents from occuring.

    J.B. or Leith I was hoping you had some insight on this.

    BTW... I have noticed one small thing, if the data entered is not a number...letter for instance I get a run time error 13 (type mismatch) which is not even a big deal and I can live with it as it really doesn't affect the use of the sheet... usually just press end and resume data input.

    Thanks
    Barry C
    Last edited by imatomic; 10-30-2009 at 09:54 AM. Reason: credit to Leith on same project

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: single cell for data entry revisited

    Hi,

    Most probably, you need to change the column offset number from 19 + N to 21 + N ...

    HTH

  3. #3
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Re: single cell for data entry revisited

    Actually that was the first thing that I did and it does fix the offset problem. Still though I am faced with the problem of an erroneous press of the delete key or such wipes out my new data/formula in column U(which is column 21). I just need to eliminate the possibility of user error on this sheet if at all possible.

    Thanks for the input.

    BC
    Last edited by imatomic; 10-28-2009 at 07:01 PM.

  4. #4
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Re: single cell for data entry revisited

    I was hoping the attachment/picture might clarify the problem. Input in column S(19) populates columns V(22) thru CC. Columns marked notes T(20) and score U(21) are new. Changed offset to 21 + N and sheet works as expected but script/code is wiping out my "score" calculation.

    Hope this helps.

    BC
    Attached Images Attached Images

  5. #5
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: single cell for data entry

    Hi,

    After the very first IF instruction, you can test the following and insert this line :

    Please Login or Register  to view this content.
    HTH

  6. #6
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Re: single cell for data entry

    Actually that did work. The delete has no effect what-so-ever. Thanks so much!

    but

    I just noticed the numeral "0" has the same affect that the delete key was having. Apparently that problem was there as well since I made the spreadsheet changes. I tried to modify it with the following:


    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    Although I'm not enough of a coder to consider myself even a "bad coder", it did compile and the code still ran without problems but just didn't work to kill the zero problem now.

    Any insight?

    Thanks
    BC
    Last edited by imatomic; 10-29-2009 at 07:13 PM.

  7. #7
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Re: single cell for data entry

    This worked:

    Please Login or Register  to view this content.
    Guess I wasn't using my head.

    Thanks for your help JeanRage!
    BC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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