Hi,
Is there a way to select a particular Value from a dropdown list using VB?
Thankyou
Hi,
Is there a way to select a particular Value from a dropdown list using VB?
Thankyou
Hello tharindudk,
Yes, you can. The code depends on the type of drop down you have.
Is it a Forms or ActiveX control?
Is it linked to a list?
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
I assume your dropdown list is on your sheet.
If so I normally write my prefferred value or text to the cell.
If my list if names of fruit in cell E2 thenIf it is a combobox in a userform thenrange("E2").value = "Apple"
userform1.index = 5
Hi, I am using Data->Data Validation for my drop dow box. When I do
Excel stop working and i have to clost it.range("E2").value = "Apple"
I tried it before I posted and it worked ok here.
Check to see if you have spaces or periods in the validation box or in the text you use to set it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks