+ Reply to Thread
Results 1 to 16 of 16

Inserting figires from another sheets to a Form

  1. #1
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Inserting figires from another sheets to a Form

    Dear all
    I have an excel document made up from 3 sections; Form, Details and Figures

    My form has some boxes that I need to fill in in order to make payments. I have colour coded the boxes to be filled in and these boxes relates to the other sheets. What I like to do is create a macro which creates different forms with a click of a button for individual Payees on the “Figures Sheet” and inserts the data to the relating boxes on the Form .

    Here is the boxes links from the Form Sheet ;

    IN FIGURES = Sheet (Figures) Colum J
    PAYEE: = Sheet (Figures) Colum A
    THEIR REF: = Sheet (Figures) Colum E
    BANK: = Sheet (Details) Colum D
    SORT CODE: = Sheet (Details) Colum E
    ACCOUNT NUMBER: = Sheet (Details) Colum F

    I have attached the form

    Can this be doable?
    Attached Files Attached Files

  2. #2
    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: Inserting figires from another sheets to a Form

    Hi lapot

    Sharon Hut appears 3 times in "Figures". Should 3 Forms be created for her? If yes, what will you call them (cannot all be named the same)?
    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.

  3. #3
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    Firstly I used Vlookup and Transferred Bank,Sort code and Account number to Figures Sheet. Then I filtered blank cell rows on Colum J Figures Sheet, this left me just names and payment total then I created a temp sheet copied the header Row and the next row with the name and it is datas between A3:AA4 to the temp file , From the temp file I entered the data to the Form's relevant boxes.
    My problem is it only crates one form, I like to do as many form for each name on Figures sheet in one go. Can this be done?

    here is the new sheet wit two macro on it , one clears and one inserts data on the form.

    Thanks in advance
    Attached Files Attached Files

  4. #4
    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: Inserting figires from another sheets to a Form

    Hi lapot

    Yes, this can be done...
    My problem is it only crates one form, I like to do as many form for each name on Figures sheet in one go. Can this be done?
    Based on your Sample File you'll have four new Forms created. What do you want to do with the Forms after they're created? Save them to new Worksheets?

  5. #5
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    We usually print the form and delete it. It also deletes the Temp sheet after the form done and ask me everytime if I want to delete the temp sheet. Can this also be turned off?

    Many thanks

  6. #6
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    Bu the way names some tımes more than 4.

  7. #7
    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: Inserting figires from another sheets to a Form

    Let me look at it...

  8. #8
    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: Inserting figires from another sheets to a Form

    Hi lapot

    Well, I found it easier to simply rewrite the Code...too many selects. So, this Code is in the attached. No Temp Worksheet required.
    Open up to Sheet Form...Ctrl + x will fire the Code.

    Please Login or Register  to view this content.
    To actually Print the Form change this from Preview to Printout.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jaslake; 02-09-2016 at 07:25 PM.

  9. #9
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    Thanks for this Jaslake sorry I couldn't get back to you yesterday because I was off work , your time is greatly appreciated.

    Unfortunately It doesn't put the correct total on the form, my payment figure is under Colum J (In Figures), it looks like your total figures is coming from Column U or V which isn't correct.

    Colum J is the total of the Total Amount column (Column I), this is what wee need to pay.
    Last edited by lapot; 02-11-2016 at 06:58 AM.

  10. #10
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    I managed sort it out

    I have changed this line
    Please Login or Register  to view this content.
    to this

    Please Login or Register  to view this content.
    I have one more things to sort it I out. Is there a way if I m paying more than one invoice I can insert all the invoice references which is under Column E (Their ref) on to form Cell F17?

  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: Inserting figires from another sheets to a Form

    Hi lapot

    I anticipated this issue in my Post #2...guess I should have asked the question differently. It'll take a rewrite of the Code...will get back to you.

    Is there a way if I m paying more than one invoice I can insert all the invoice references which is under Column E (Their ref) on to form Cell F17?

  12. #12
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    Hi Jaslake

    did you managed to get some result?

    kind regards

  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: Inserting figires from another sheets to a Form

    Hi lapot

    No I haven't. For some reason the Filter on your Table is not functioning properly and I haven't been able to resolve it.

  14. #14
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    Thanks but there must be a formula to check column A and if the name is same merge the references(Column Ref) onto column Combined.

    I have attached sample sheet

    thank you for your time.
    Attached Files Attached Files
    Last edited by lapot; 02-15-2016 at 10:39 AM.

  15. #15
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    Re: Inserting figires from another sheets to a Form

    I have sorted with these formulas

    On column AE this formula break the reference
    Please Login or Register  to view this content.
    with this finial formula I created final references on column AF
    Please Login or Register  to view this content.
    I have inserted this line in to macro

    Please Login or Register  to view this content.
    worked perfectly

    thank you for your time.

  16. #16
    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: Inserting figires from another sheets to a Form

    Hi lapot

    Glad you got it sorted.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Inserting a table in an excel form
    By andrete in forum Excel General
    Replies: 1
    Last Post: 02-08-2014, 11:30 AM
  2. [SOLVED] Inserting values from a form to sheet
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2012, 03:31 PM
  3. Automatically inserting new rows in sheets or updating the sheets
    By AlexOram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-03-2012, 07:35 AM
  4. Inserting a graphic into a form
    By Uderzo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2011, 09:22 AM
  5. Automatically Inserting Date in Form
    By JessFace in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2011, 03:36 PM
  6. macro or form for inserting rows
    By muffintop in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-17-2009, 12:34 PM
  7. inserting images into a form
    By msangapu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2007, 11:59 AM
  8. Inserting Form form Visual Basic...
    By thomas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2005, 05:05 PM

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