+ Reply to Thread
Results 1 to 8 of 8

Creating multiple user forms based on a single data table

  1. #1
    Registered User
    Join Date
    09-07-2016
    Location
    Croatia
    MS-Off Ver
    Office 365
    Posts
    9

    Question Creating multiple user forms based on a single data table

    Hello everyone,

    My problem is as it follows;

    I have a table as shown in the picture below;

    https://s22.postimg.org/412bsgdup/Slika_1.gif

    What I need to do is to create a new offer form for every one of those vehicles, which contains all the information from the associated row.

    So far I added a new column with offer numbers that I use as a reference point for index match function to fill out this data in the offer form. From there I usually create a copy of the offer sheet and change the offer number by hand. I do that for every single row in the main table.

    Here's a picture of that offer form;

    https://s22.postimg.org/omh3kcvfl/Slika_2.gif

    Resultant conclusion is that I need excel/vba to go trough all offer numbers from the main table, and create a new offer form for all of them. Index match should take care of the form filling part.

    Recently I've started to learn about VBA as it seems I'll need it, but it's still a long way to go, so every bit of insight would be helpful.
    Attached Images Attached Images
    Last edited by eHektor; 09-08-2016 at 05:51 AM.

  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: Creating multiple user forms based on a single data table

    Hi eHector

    Welcome to the Forum!!!

    Pictures are of little value.

    Please attach a sample workbook the Structure of which is the same as your actual workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    INCLUDE ANY CODE YOU'RE USING OR HAVE TRIED.

    Remember to desensitize the data.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    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
    Registered User
    Join Date
    09-07-2016
    Location
    Croatia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Creating multiple user forms based on a single data table

    Thank you jaslake.

    I've attached a sample workbook that represents my problem.

    In the place of the first sheet is the Main List, and on the second sheet is already a finished Offer Form as it needs to be.

    As it could be seen, data in the Offer Form is linked from the Main List via index match by changing the Offer number.

    So what I need VBA to do is to create a new Offer Form for every Vehicle from the Main List.

    Sequence of actions should be as it follows:

    1. Create a copy of the Offer form and place it on end (as a last sheet)
    2. Change the Offer number on that new form to the one below the previous number from the Main List.
    3. Repeat the process for every Vehicle that exists in the Main List.

    Unfortunately I haven't done any coding by myself, so if this seeks out too much effort to code, I'll appreciate any advice in which direction to point my research at.

    Thank you.
    Attached Files Attached Files
    Last edited by eHektor; 09-13-2016 at 08:53 AM.

  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: Creating multiple user forms based on a single data table

    Hi eHector

    This Code is in the attached. Ctrl + x will fire the Code. Please be aware, there is a hidden Sheet called "Template".

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

  5. #5
    Registered User
    Join Date
    09-07-2016
    Location
    Croatia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Creating multiple user forms based on a single data table

    Thank you jaslake, I'm amazed to what extent you've went with this code.

    It works great!

    I'll certainly use it as base for my ongoing VBA research.

    Since you've gone all this way to even change sheet names, I'm curious which part of code should be changed to use data from B column in the Main List as sheet names?

    Thank you.

  6. #6
    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: Creating multiple user forms based on a single data table

    Hi eHector

    As you're no doubt aware including a "/" in a worksheet name is not allowed. So, the naming convention is changed from B2667/16 to B2667 16.

    This code has been modified to look at Column B.


    Please Login or Register  to view this content.

  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: Creating multiple user forms based on a single data table

    You're welcome...glad I could help. Thanks for the Rep.

  8. #8
    Registered User
    Join Date
    09-07-2016
    Location
    Croatia
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Creating multiple user forms based on a single data table

    Thank you once again, works like a charm!

    I managed to incorporate it into a full scale table.

    Kind regards

+ 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. Creating multiple standard forms with different data
    By michael.adams2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2016, 10:10 AM
  2. Replies: 1
    Last Post: 06-24-2014, 03:57 AM
  3. Replies: 3
    Last Post: 06-16-2014, 04:49 PM
  4. [SOLVED] Creating User Forms with VBA
    By dinesh_ltjd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2012, 11:47 AM
  5. Help creating multiple user entry forms into a database
    By jacobkmc in forum Access Tables & Databases
    Replies: 2
    Last Post: 03-12-2012, 12:05 PM
  6. Importing data from multiple word forms into a single Excel spreadsheet with vba
    By marble2009 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2011, 10:31 AM
  7. Creating two different charts based on a single pivot table based on condition
    By exlnovice in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2008, 06:21 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