Split a sting without Duplicates VBA -


stringtable :

table1.col1 = table2.col1 table1.col3 = table3.col1 table1.col4 = table2.col6 table1.col5 = table4.col1 table1.col6 = table3.col1 

from above stringtable need table names comma seperated without duplicates table1,table2,table3,table4 ouput. have tried split function didint worked out. can help

code:

  wrdarray() = split(stringtable, " = ")                 = lbound(wrdarray) ubound(wrdarray)                    strg = strg & vbnewline & wrdarray(i)                 next            msgbox strg   

you've extracted multiple "table1.col1", "table2.col1", etc need split() cut "col1", etc table names.

don't output results in loop haven't removed duplicates yet. add them list can remove duplicates before iterating loop , building output string


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -