+ Reply to Thread
Results 1 to 3 of 3

How do I link commandbuttons to combobox selection?

Hybrid View

  1. #1
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: How do I link commandbuttons to combobox selection?

    Change the combobox properties:
    BoundColumn=0
    ColumnCount=1

    Add the below to the very top of Module1

    Public Product_SKU_Row  As Long
    Public Enum Headers
        Spin = 3
        Video = 4
        In_Use = 5
        Photo = 6
        WebCollage = 7
        Reviews = 8
        Article = 9
    End Enum
    Modify the form's button codes as was done with Start360_Click

    calculate the sku row in the worksheet:
    Private Sub cboProductSKU_Change()
        Product_SKU_Row = cboProductSKU.Value + 2
    End Sub

    Private Sub Start360_Click()
        With Cells(Product_SKU_Row, Headers.Spin)
            .Value = IIf(.Value = "", "S", "")
        End With
    End Sub
    When choosing the column numbers for the cell, type Headers. then choose the header from the dropdown.
    Last edited by protonLeah; 12-28-2018 at 07:46 PM.
    Ben Van Johnson

+ 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. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  2. [SOLVED] Code required to Auto Populate 3rd Combobox based on 02nd Combobox Selection
    By bimmy80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-14-2015, 03:56 AM
  3. [SOLVED] Trying to Link 2 textboxs to a combobox selection
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2015, 12:30 PM
  4. [SOLVED] Make combobox list options dependant on selection in another combobox within a userform
    By Vladimir_Dobvchenko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2013, 05:30 AM
  5. [SOLVED] fill combobox selection based on a selection from the first combobox
    By Monza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2013, 07:34 PM
  6. [SOLVED] link commandbuttons on userform and sheet
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-18-2013, 01:54 PM
  7. [SOLVED] how to link commandbuttons on userform
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-30-2013, 04:23 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