Results 1 to 3 of 3

Build array from a clickable menu of choices?

Threaded View

smpita Build array from a clickable... 03-18-2014, 03:14 PM
smpita Re: Build array from a... 03-18-2014, 04:23 PM
smpita Re: Build array from a... 03-18-2014, 05:43 PM
  1. #1
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Smile Build array from a clickable menu of choices?

    Hello and thank you for looking at my thread.

    I am working on a project that will take a pile of reports and email them to specific people for me. This is a generic version of the spreadsheet I will use to control who is emailed the various reports --> reportemails.xlsx

    I am at the beginning of the project right now. I want to build a function that will read the values of the A1 cell and will create a menu that offers the user a list of all of the communities described in that cell. The user will then either shift-click and/or ctrl-click from the built menu. The selections that the user chooses will be stored in an array for later processing in another function.

    I have no clue how to build this menu. All I have is the following code that reads A1 and breaks it into an array (ComCodeArray) and then plays a little bit with it. The ComCodeAll string is only there so I know I am building the array right and using the proper syntax.

    Function SetCommunities()
    
    Dim ComCodeArray As Variant
    Dim ComCodeAll As String
    Dim ComCodeIndex As Integer
    
    ComCodeArray = Split(Range("A1").Value, "|")
        For ComCodeIndex = LBound(ComCodeArray) To UBound(ComCodeArray)
            ComCodeAll = ComCodeAll & vbCrLf & ComCodeArray(ComCodeIndex)
        Next ComCodeIndex
    
    MsgBox ComCodeAll
    
    End Function
    Thank you for any help that you can offer me.
    Last edited by smpita; 03-18-2014 at 03:18 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dynamic clickable list/menu
    By aelias3 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-10-2013, 02:32 PM
  2. [SOLVED] Need drop down menu with two choices with some functionality
    By sqlindia in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2012, 08:08 AM
  3. Clickable counter button macro for array
    By Sylar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2011, 03:50 AM
  4. [SOLVED] Duplicate Menu Choices
    By JCLSB in forum Excel General
    Replies: 1
    Last Post: 12-20-2005, 09:35 PM
  5. Format from menu will not offer options or choices?
    By Tribeventure in forum Excel General
    Replies: 0
    Last Post: 12-06-2005, 04:20 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