简体   繁体   中英

vba- split dictionary values

I joined arrays on a dictionary using this, based on an answer i got in a previous question i asked in this site.

ks = Join(Array(data(k, 1), Split(data(k, 3) & "-> ", "-> ")(1)), ChrW(8203))

for starters what does the ChrW(8203) represent?

this is how the data i am trying to split looks like

  For c = 1 to Range("A2").End(xlDown).Row
      For i = 1 to dic.Count
          If Range("A" & c +1).Value = dic(i) Then
             Range("D") & c + 1).Text = kss(i)    ' << ?
          End If
      Next i
  Next c

and i dont know what the "?" represents how can i split the two values later? using the split function? Thank you very much for any help!

Not a solution but need to paste image.

Decimal 8203 = Hexadecimal 200B Hex(8203) , you can see description from Office apps' Insert Symbol (very useful sometimes), it says Zero Width Space :

符号

You can still use it to Split strings with it Split(StringVariable,ChrW(8203)) . eg:
例

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM