Excel VBA ComboBox DropDown Button Size--changed itself

前端 未结 7 1560
忘了有多久
忘了有多久 2020-12-22 07:25

I have a workbook with several comboboxes (and listboxes) and a lot of vba written around them. I\'ve used the same code in the Workbook_Open procedure to format them for we

相关标签:
7条回答
  • 2020-12-22 07:46

    I had the same issue. Haven't deployed to users yet but the code below seems to work. Just resetting the size each time the worksheet is selected.

    Private Sub Worksheet_Activate()
         ActiveSheet.Shapes("ComboBoxSelectAccount").Width = 300
         ActiveSheet.Shapes("ComboBoxSelectAccount").Height = 20
    End Sub
    

    HTH Rick

    0 讨论(0)
提交回复
热议问题