Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 5 行文本的特定文档。行由分隔符分隔。我正在将整个文档作为字符串读取,并期待使用 VBA 中的分隔符将其拆分。
请任何帮助!!!!
尝试这个:
Sub SplitTest() Dim splitTarget As Variant Dim splitString as string splitString = "test1,test2,test3" splitTarget = Split(splitString, ",") End Sub