+ Reply to Thread
Results 1 to 13 of 13

Need help in programming macro for form submission

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Need help in programming macro for form submission

    Hi,

    I have this call monitoring sheet we use at work and it gets tedious to maintain multiple sheets for our employee's calls's, my boss wants me to get a macro coded in this to submit the data to a different sheet once the button is clicked and also update the call status as per a set criteria.

    The call grading criteria is as below

    Red= 50 & below
    Amber= 51 to 80 scoring
    Green= 81 & above

    I have no clue on how to do this and need help.

    Regards,

    Sanmeet
    Attached Files Attached Files

  2. #2
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: Need help in programming macro for form submission

    This might help to your macro project.

    https://www.excelforum.com/excel-pro...rform-vba.html

  3. #3
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Re: Need help in programming macro for form submission

    Hi.

    I'm sure it would help me if I understood what the code does, from what I understood reading the text,this code is for copying data on basis of checkboxes
    My requirement is quite different from it.

    I need all data to be transposed to the data sheet under the appropriate headers when submit is clicked.

    Regards,

    Sanmeet

  4. #4
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: Need help in programming macro for form submission

    alright will try my best to work on your request

  5. #5
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: Need help in programming macro for form submission

    Hi

    Try attached file.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: Need help in programming macro for form submission

    any update?

  7. #7
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Re: Need help in programming macro for form submission

    Apologies for the dealy, yes it works however the entries are happening in row 600 onwards and not from row 3 above

  8. #8
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Re: Need help in programming macro for form submission

    Also if you can help checking this formula its supposed to go in the subtotal field of the form and if the answer to any of the questions above is N/A the score should not get changed or effected in any way.

    However when I choose N/A the score gets added to the subtotal and it should not happen

    =SUMIF(G16:G26,"Yes",$E16:$E26)/(1-SUMIF(G16:G26,"N/A",$E16:$E26)/SUM($E16:$E26))*IF(COUNTIFS($F16:$F26,"auto zero",G16:G26,"No"),0,1)

    The autozero part of the formula can be removed as we've decided not to use it.

  9. #9
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: Need help in programming macro for form submission

    yeah thanks for catching that one, because there is a value in Call total that is why the next empty value is under that column which is 600+. will try to update the file.

  10. #10
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Re: Need help in programming macro for form submission

    If needed we can remove the values in the cell total column if that helps I can always add the formula there later

  11. #11
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: Need help in programming macro for form submission

    I just fixed the destination of the information once the button was click. maybe you can work on with the value using your formula on each cell or create a conditional formatting.
    Attached Files Attached Files
    Last edited by 323100N; 03-25-2019 at 07:40 AM.

  12. #12
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Re: Need help in programming macro for form submission

    Thank you for fixing the Macro can you now help me with that formula I sent earlier?

    Also if you can help checking this formula its supposed to go in the subtotal field of the form and if the answer to any of the questions above is N/A the score should not get changed or effected in any way.

    However when I choose N/A the score gets added to the subtotal and it should not happen

    =SUMIF(G16:G26,"Yes",$E16:$E26)/(1-SUMIF(G16:G26,"N/A",$E16:$E26)/SUM($E16:$E26))*IF(COUNTIFS($F16:$F26,"auto zero",G16:G26,"No"),0,1)

    The autozero part of the formula can be removed as we've decided not to use it.

  13. #13
    Registered User
    Join Date
    03-19-2019
    Location
    India
    MS-Off Ver
    365
    Posts
    7

    Re: Need help in programming macro for form submission

    Quote Originally Posted by sssanmeet View Post
    Thank you for fixing the Macro can you now help me with that formula I sent earlier?

    Also if you can help checking this formula its supposed to go in the subtotal field of the form and if the answer to any of the questions above is N/A the score should not get changed or effected in any way.

    However when I choose N/A the score gets added to the subtotal and it should not happen

    =SUMIF(G16:G26,"Yes",$E16:$E26)/(1-SUMIF(G16:G26,"N/A",$E16:$E26)/SUM($E16:$E26))*IF(COUNTIFS($F16:$F26,"auto zero",G16:G26,"No"),0,1)

    The autozero part of the formula can be removed as we've decided not to use it.
    Any help with the above?

+ 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. Need Help in Form data submission into excel sheet
    By mebro in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-14-2018, 11:22 PM
  2. Need to clear a few combo box entries on form submission
    By predavore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2017, 10:42 PM
  3. Use form submission to enter data both in the form and not in the form
    By tsamuels in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2013, 10:06 PM
  4. [SOLVED] Need help with Form Submission Error Command
    By cklein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2012, 12:44 PM
  5. Excel Macro on a Form - Submission to Access
    By psanghvi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2011, 07:44 AM
  6. POST data form submission to website
    By bigsmooth in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2010, 04:37 PM
  7. Import from form submission email?
    By teaker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2009, 02:44 AM

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