+ Reply to Thread
Results 1 to 3 of 3

How to take new data from a UserForm and sort?

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    How to take new data from a UserForm and sort?

    OK, I've got a database with a UserForm for entering the data. The top selection on the UserForm is a ComboBox, and the ComboBox has a list of #'s that are in the database. When one is selected the change imports the rest of the data into the UserForm. From there you can change (or not) any data and click the Done button. The problem is, that if the # is not in the database and you fill in the feilds as needed, the Done button will do nothing.

    I've added (but may not need) another button called NEW. I've been able to input the new data with this button, except that the data needs to be "sorted" or "inserted" into the data form correctly.

    Any help?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How to take new data from a UserForm and sort?

    Hello jsprot,

    Write a macro to transfer the data from the UserForm to another worksheet and also copy the database to the same sheet. You can then use Excel's built-in sorting methods, which you can call from VBA, to sort the data before copying it back to the database.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-01-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: How to take new data from a UserForm and sort?

    Hello, thanks for the quick reply, but I've done that in the past.

    Here is an attachment that may help.

    The database needs to be sorted into the zones where needed.

    Thanks.
    Attached Files Attached Files

+ 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