+ Reply to Thread
Results 1 to 4 of 4

Macro submit button code submits wrong data

  1. #1
    Registered User
    Join Date
    12-02-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Macro submit button code submits wrong data

    Please see attached file for reference.
    I assigned a macro for a submit button such as when i enter data from cells B3 to F3, the data will be submitted to the end of the list, that is B20 to F20.

    Same thing for the second set of data, where information entered to cells I3 to M3 will show up in cells I21 to M21 once submit button is entered.

    My problem is with the third set of data (column P to column S). It suppose to do the same, but once i hit the submit button, it copies the entered data as well as the submit button!!! You will see that the "Submit Condenser Button" is copied to the cell O13 too.

    I'm new at writing macros codes so maybe i can't spot whats causing it, but i technically copy and paste the code from the previous macros and changed the referenced cells so it should be doing the same. By the way, module 3 is the module referenced for the third set of data's macro.

    I appreciate your help!
    Attached Files Attached Files
    Last edited by den88; 12-07-2010 at 05:18 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro Troubleshooting

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-02-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Macro submit button code submits wrong data

    hey all,

    I realized the size of my button is overlapping the cell referenced cell, hence submitting the physical button too. Just make sure the button doesn't overlap other cells.
    Feel kinda dumb answering my own question =)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro submit button code submits wrong data

    Don't feel that way, sometimes writing out a question does turn on the lights for us, happens to be all the time. And sometimes the lights don't come on until after pressing "post". Hehe.

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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