+ Reply to Thread
Results 1 to 3 of 3

Userform repeat all data to next row except unique field from listbox

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Userform repeat all data to next row except unique field from listbox

    Ok, heres what I want to do - whether it can be done is another matter!

    I have a userform which puts all data on next row of spreadsheet (this works fine).
    I have recently had to add a listbox of countries to the userform (this is made from a list on sheet2, works fine).
    BUT, the list of countries selected on the listbox needs to have the same data as what's on the rest of the userform, but to be on seperate rows (one row per country selected).

    So essentially:

    Job no: Job: Country:
    123 Make tea Germany
    123 Make tea France
    123 Make tea UK
    123 Make tea Australia
    123 Make tea Egypt
    123 Make tea Iraq

    Please note that all info (job no, Job) is the same except the country.

    Does this make sense, and is it possible please?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform repeat all data to next row except unique field from listbox

    Is your Listbox multiselect?

    If it is then perhaps something along these lines would help.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Userform repeat all data to next row except unique field from listbox

    Hi,

    Thanks Norie, yes it is multiselect, I'm currently trying to implement your code into my userform but i's taking a while as I have many fields to offset. I will let you know how I get on once I have finished. Thanks kindly for your prompt help!

+ 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