+ Reply to Thread
Results 1 to 2 of 2

Populate Workbook with a Worksheet for each ComboBox List Item

  1. #1
    Forum Contributor
    Join Date
    07-28-2008
    Location
    Leamington Spa, UK
    MS-Off Ver
    2010
    Posts
    142

    Question Populate Workbook with a Worksheet for each ComboBox List Item

    Hi All,

    I have a userform that utilises a combobox, CB1 to allow the user to select a predefined item, or to input their own item. If the user inputs their own item, it is added to the the list in the combobox. The combobox list is populated by the following code - It references Sheet 3 and the items in column A from Row 2 to Row with the last value.

    Please Login or Register  to view this content.
    Thus when the user writes in the combobox, it adds another item to column A (using another code in my workbook).

    Now what I require.....
    For each of the combobox list items, I require a separate worksheet to be created in the workbook. If the worksheet already exists it must remain unaffected; if it doesn't then it needs to be created and named as per the of the combobox list item names.

    I'm sure this is very easy but in my slow learning of vba I haven't quite got my head around the looping of events and 'for each' etc.

    Any help would be greatly appreciated as always.
    Cheers,
    Mark
    Last edited by R_S_6; 09-14-2010 at 05:15 AM.

  2. #2
    Forum Contributor
    Join Date
    07-28-2008
    Location
    Leamington Spa, UK
    MS-Off Ver
    2010
    Posts
    142

    Lightbulb Re: Populate Workbook with a Worksheet for each ComboBox List Item

    Okay a bit more digging around on the net and I have managed to cobble something together. Thought I would post it for the benefit of other :

    Please Login or Register  to view this content.
    Cheers,
    Mark

+ 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