+ Reply to Thread
Results 1 to 5 of 5

why the amend code is not working?..any help pls?

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    davao city philippines
    MS-Off Ver
    Excel 2007
    Posts
    25

    why the amend code is not working?..any help pls?

    I ALREADY REVERSE THE CODE BUT STILL IT AIN'T WORKING..MY AMEND BUTTON WORKS AS DATABASE UPDATE AND THE INPUT/EDITED DATABASE TRANSFERED TO IT'S CORRESPONDING COLUMN..
    combobox9 -> column A
    combobox1 -> column B
    combobox8 -> column C
    textbox28 -> column D
    textbox2 -> column E
    textbox3 -> column F
    combobox4 -> column G
    textbox24 -> column H
    textbox25 -> column I
    textbox26 -> column J
    textbox5 -> column K
    combobox7 -> column L

    PLEASE HELP ME...

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

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: why does amend is not working?..any help pls?

    .Cells(.Rows.Count, 0)
    There's no such thing as column 0. Column A = 1, B = 2, ...
    You can also write .Cells(.Rows.Count, "A"). ...
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-12-2013
    Location
    davao city philippines
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: why the amend code is not working?..any help pls?

    but why does if i edited some data on the user form
    it ddin't copy to worksheet?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: why the amend code is not working?..any help pls?

    You have this line: On Error GoTo exitsub
    Therefore, when the code gets to the line .Cells(.Rows.Count, 0), the procedure branches directly to the exit point because that line errors out.

    Write: ... .Cells(.Rows.Count, "A"). ...

    Also, you have:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 05-10-2013 at 12:35 AM.

  5. #5
    Registered User
    Join Date
    11-04-2013
    Location
    Apatin, Serbia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: why the amend code is not working?..any help pls?

    wow... wow.. wow.. please attach your fixed Ambor file.. I need it I use similar stuff.. and found on forum similar file but this is great!

+ 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