Results 1 to 10 of 10

Update vba code through user input.

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-11-2011
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    325

    Update vba code through user input.

    I think I am just hoping for an easy way out but is it possible to have self updating code based on user input?

    I have a form that includes a combo box. As an example lets say I had this...

    
    Sub frm_Mode_Initialize()
        'Clear previous values.
        frm_Mode.cmbBox.Clear
        With frm_Mode.cmbBox
            .AddItem "blue"
            .AddItem "red"
            .AddItem "yellow"
        End With
        frm_Mode.Show
    End Sub
    where frm_Mode would allow the user to pick blue, red, yellow, or enter a new value. If the user entered a new value could I add add this to the initialize list for future use? OR will I have to keep track of this in a hidden spreadsheet or something similar?

    TL:DR -> I am pretty sure I am expected to much out of VBA but it would be reassuring to know self updating code existed.
    Last edited by 111StepsAhead; 06-01-2011 at 10:20 AM.

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