Dim t As Table = Tables("表B")
Dim bh As String = "AA01BB"
Dim v As String = t.Rows(t.Position)("第二列").Substring(bh.length)
Dim idx As Integer = v
For i As Integer = t.topposition + 1 To t.bottomposition
idx += 1
Dim v As String = t.Rows(t.Position)("第二列").Substring(bh.length).trim("号")
Next
--------------------------
上面这段序列填充代码,如果编号的前缀包含多种情况,怎么合并代码?
比如前缀有三种情况:"AA01BB"、"CC01DD"、"EE01FF"