+ Reply to Thread
Results 1 to 13 of 13

Error using code to prevent editing of data with forms

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Error using code to prevent editing of data with forms

    Hi.
    I'm trying to use a code to prevent editing of data in a spreadsheet.


    But the data is entered via a form.

    When I use the form to enter the data generates the following error below.
    Run-time error '1004 ':
    Method 'Undo' object '_Application' failed
    Please Login or Register  to view this content.
    Last edited by marreco; 09-13-2012 at 06:28 PM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Error using code to prevent editing of data with forms

    Hi.
    Any idea?

    Thank you!!!

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Error using code to prevent editing of data with forms

    Hi.

    I'll send the spreadsheet to improve understanding.

    How big is the planilh (1.48MB), I had to deposit it at a site
    http://www.sendspace.com/file/y4bqne

    Thank you!!

  4. #4
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Error using code to prevent editing of data with forms

    Hi.
    Any idea?

    Thank you!!!

  5. #5
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Error using code to prevent editing of data with forms

    ps? pls?
    to unprotect?

  6. #6
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Error using code to prevent editing of data with forms

    dude, it's brazilian
    not english

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Error using code to prevent editing of data with forms

    Hi.
    the data that is entered on the form are entered in the spreadsheet, this time I want, that these data be blocked and when the user is editing some cells prompted the release.

  8. #8
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Error using code to prevent editing of data with forms

    i can't read brazilian, so i can't help
    sorry

  9. #9
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Error using code to prevent editing of data with forms

    reverse it to say:

    Please Login or Register  to view this content.
    if u disable, then u can't do anything

  10. #10
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Error using code to prevent editing of data with forms

    Hi.

    Thank you!!!

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Error using code to prevent editing of data with forms

    Hi marreco

    Long time no see!!!

    My understanding is that if the User changes a value in Column B, the User is presented with an Input Box. If the User types "alevba" in the Input Box the change is accepted; if the Input Box does not contain "alevba" or is empty or is canceled the change is rejected and the old value is restored.

    If my understanding is correct the code appears to do just that. So, what error are you receiving (in English please?

    Nevermind...I see the issue is SOLVED.
    Last edited by jaslake; 09-13-2012 at 06:43 PM.
    John

    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.

  12. #12
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Error using code to prevent editing of data with forms

    hello my friend, how long I do not see you too!!

    The problem was fto I enter the data via the form.

    but then I realized that there was a detail (failure) in code.

    I was resolved, but I am very grateful for you trying to help, thank you!

  13. #13
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Error using code to prevent editing of data with forms

    Till we meet again...my best to you.

+ 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