在 Excel 2010 中,使用 VBA,找到某个字符时如何拆分字符串?
假设A1
="This is a | test of | the | emergency broadcast signal"
我将其分配给一个变量,例如
strColumnA = Range("A" & CStr(currRow)).Value
现在我想在工作表 2 的末尾追加 4 个新行。所有 A 列,如:
A1 = "This is a"
A2 = "test of"
A3 = "the"
A4 = "emergency broadcast signal"
有任何想法吗?