Reading the Excel cell dropdown values from macro -
i have excel file in have cell list , has values "usa", "india", "europe", "london". want read dropdown values present in cell macro... can assist me please??
i assuming list in excel sheet has been created using data > validation?
assuming have list in cell a1 on spreadsheet following code retrieve values in list.
sub getdropdownlistvalues() dim sourcelist range set sourcelist = evaluate(range("a1").validation.formula1) dim cl range each cl in sourcelist debug.print cl next cl end sub hope helps
Comments
Post a Comment