+ Reply to Thread
Results 1 to 3 of 3

Userform with Combo box to paste date to cell range based on each option in drop down

  1. #1
    Registered User
    Join Date
    06-07-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Userform with Combo box to paste date to cell range based on each option in drop down

    Hi All

    Thanks for taking the time to read this.
    I have created my first user form, it is pretty basic but I can't work out how to do a combo box change event.
    I have a worksheet that when you complete the user form adds the data from column C15 to L15 onwards.
    This bit works fine.
    I have now added a combo box at the top of the form with each option corresponding to an area on the worksheet. Each area represents a cupboard where our stock is held. What I really want excel to do is paste the data in the next available line of the cupboard based on what the user selects in the combo box, so if cupboard 1 was selected the data goes to cupboard 1 to the next empty row and so on.
    Sample sheet and code attached.

    A really nice to have but not essential at all is if the first bit is possible, is there code that should the cupboard run out of blank lines when the user form is completed that excel can just insert the data by adding a row in that cupboard location. The only other slight issue with this is that I have conditional formatting in column B & G and a formula in column B that would need to be included in any inserted lines.

    Thanks in advance for any assistance, I have been stuck on this for couple days now.
    If possible could the code please be posted as I can't always open the updated excel files (apologies for being a pain)

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

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Userform with Combo box to paste date to cell range based on each option in drop down

    With Changes on the Sheet

    no more merged cells
    1 tabel for the data

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-07-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Re: Userform with Combo box to paste date to cell range based on each option in drop down

    Perfect, thank you so much for all your help
    It never even occurred to me to use a table

+ 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. Copy paste range of cells based on drop down list selection
    By jrx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2016, 10:23 AM
  2. Userform for Date & Paste Option
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2014, 06:16 PM
  3. Change value of cell based on a drop down menu option.
    By laxtui in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 07:23 AM
  4. Replies: 1
    Last Post: 12-09-2013, 04:19 PM
  5. [SOLVED] Disable frames & option buttons on userform based on today's date - Part II
    By raj.bris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:51 PM
  6. [SOLVED] Disable frames & option buttons on userform based on today's date
    By raj.bris in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-02-2013, 01:05 AM
  7. Copy & Paste Range of Cells Based On Combo Box Value
    By medihx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2011, 04:43 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