+ Reply to Thread
Results 1 to 5 of 5

Thread: Making an Advanced Input Box

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    Bloomington, USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Making an Advanced Input Box

    I have a file with columns A to H
    A – Order Number
    B- Order Number
    C- Item
    D – Material
    E – Quantity
    F – Date Ordered
    G- Order Status
    H – Priority Level
    What I need
    1. I want to have an input form that can be used to enter data into the "input" worksheet. In this input form there should be a add subset button which can be clicked to add more fields for Item No., Material and Qty. By this I mean that If a single order has 3 items then I can click this button 2 times to add more fields in my input box. ( now I can enter 3 different item numbers, material name and qty). After this is done there should be a submit button which can add these to the input worksheet. For orders with multiple items the form should create a new row. Example if there are 2 items then I will enter the order number once and distributor name once but I would use the add subset button to enter 2 items numbers and quantity. All this information should paste in 2 rows.

    I was hoping this is a possible macro.

    Thanks

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,639

    Re: Making an Advanced Input Box

    You could create a UserForm, but I wouldn't try adding "fields" to the form. Just add item by item
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  3. #3
    Registered User
    Join Date
    07-12-2010
    Location
    Bloomington, USA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Making an Advanced Input Box

    Quote Originally Posted by royUK View Post
    You could create a UserForm, but I wouldn't try adding "fields" to the form. Just add item by item
    Ok so if i make new entries each time, could you give me the code for that,

    1. What should be the code in the button when i click "add new entry"

    2. What should be the background code for the all the above fields in the input box

    and is it possible though to have a button which could give me option to add multiple fields in the same input form

    Thanks
    Last edited by excel199; 07-13-2010 at 01:54 AM.

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,639

    Re: Making an Advanced Input Box

    You can adapt the DataBase form example here

    http://excel-it.com/vba_examples.htm
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  5. #5
    Forum Guru
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,110

    Re: Making an Advanced Input Box

    Quote Originally Posted by excel199 View Post
    and is it possible though to have a button which could give me option to add multiple fields in the same input form
    If you go the form route, I would put all the fields for 3 rows into the form, but disable then, maybe even make them hidden. Then your button could unhide and enable them.

    But if you have never worked with forms before, I might suggest designing a "Data Input" sheet instead and put a button on it to save the data into your "Data" sheet.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0