drrocket5292
Technical User
Does anyone know how to set the showdropbuttonwhen property for an activeX combobox embedded on a worksheet? I was messing around by trying to mimic the activeX combobox properties box and tried:
with combobox1
.showdropbuttonwhen = 1
end with
and it shut down my excel. there's a showdropbuttonwhen property in the properties box but i'm guessing there isn't one in VBA. I have hundreds of saved excel spreadsheets that I'm trying to put a combobox on whenever I reopen them and I don't want to print the dropdownbutton when I print them. I've got the code working to put the combobox on the worksheet but I can't figure out how to not print the button.
with combobox1
.showdropbuttonwhen = 1
end with
and it shut down my excel. there's a showdropbuttonwhen property in the properties box but i'm guessing there isn't one in VBA. I have hundreds of saved excel spreadsheets that I'm trying to put a combobox on whenever I reopen them and I don't want to print the dropdownbutton when I print them. I've got the code working to put the combobox on the worksheet but I can't figure out how to not print the button.