+ Reply to Thread
Results 1 to 6 of 6

Input data from UserForm to right place (Easy for those Knowledgeable)

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Input data from UserForm to right place (Easy for those Knowledgeable)

    Hey everyone,

    [view Sample spreadsheet]

    OVERVIEW

    I have a spreadsheet that tracks details on Meetings (Date, Time, Attendance, Meeting Overview). On the top there is some counter, it works let's ignore that, the focus is on the UserForm. The user of the spreadsheet will click the user form, input the data, and click submit

    THE GOAL

    I am trying to get the data from the UserForm to place itself in the proper place based on the supplier selected, perhaps with a simple VLOOKUP. This is probably really easy but I do not know how.

    I am really struggling here, anything would help me even if it's a simple suggestion.

    Thanks guys
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Input data from UserForm to right place (Easy for those Knowledgeable)

    Can I suggest that you create a regular normalised 2 dimensional database. i.e. insert a new column A to hold the Supplier Name and then column B:G will be your current columns A:F

    This will give you a lot more flexibility for reporting and at the same time you'll be able to use the Powerful Pivot Table functionality

    Then in the Click event of the Input Data button on your form use code like the following


    Please Login or Register  to view this content.
    It would be prudent to build in a check as the first stage in the macro to ensure all 7 entries have been completed and if not put up a warning message and exit the sub.

    I'd also consider creating a separate record for every named person. i.e. where you have 7 names on row 17 create 7 identical records apart from the names. The number of similar rows to create for each record will be the maximum number of names in either the Firm Attendance field or the Counter Party Attendance column.

    You might think this is unnecessarily adding rows to the database but believe me your ability to report information relating to people will be much enhanced.
    Last edited by Richard Buttrey; 06-30-2017 at 12:27 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Input data from UserForm to right place (Easy for those Knowledgeable)

    Try something like this, Paste at top of your userform Module:-
    The code should pick the correct column and row based on cbosuppliers.
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,361

    Re: Input data from UserForm to right place (Easy for those Knowledgeable)

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: Input data from UserForm to right place (Easy for those Knowledgeable)

    Quote Originally Posted by MickG View Post
    Try something like this, Paste at top of your userform Module:-
    The code should pick the correct column and row based on cbosuppliers.
    Please Login or Register  to view this content.
    Regards Mick
    Mick you sir are the best person in the world

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Input data from UserForm to right place (Easy for those Knowledgeable)

    You're welcome
    Glad it worked for you !!

+ 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. [SOLVED] Inputing data to Spreadsheet from Userform [Easy Question For Most] pls help me !
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-13-2017, 02:58 PM
  2. Easy way to input data for new projects
    By mvparker79 in forum Excel General
    Replies: 4
    Last Post: 01-22-2016, 02:46 PM
  3. Use a second userform in place of an input box help
    By MontgomeryBrea in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2015, 01:49 PM
  4. add in userform wont place data on another workbook
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2014, 09:22 AM
  5. Replies: 4
    Last Post: 11-28-2012, 06:09 PM
  6. Replies: 2
    Last Post: 09-05-2012, 07:38 PM
  7. Userform finding next row to place data
    By BrianW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2006, 05:45 PM

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.6.0 RC 1