Sub 提取数据预备() For i = 1 To 3000 Cells(i, 2) = Application.WorksheetFunction.Trim(Cells(i, 1)) Cells(i, 2) = Application.WorksheetFunction.Trim(Cells(i, 1)) Next Call 选择性粘贴格式 Call 删除第二列 Call 删除空格 Call 确定位置1 Call 确定位置2 End Sub Sub 选择性粘贴格式() Columns("b:b").Copy ...
Sub celia() For j = 2 To 4 For i = 2 To 94 If Sheet1.Cells(i, 1) = Sheet2.Cells(j, 1) Then myCount = myCount + 1 End If Next Sheet2.Cells(j, 2) = myCount Next End Sub Sub natenie() For i = 2 To 94 myCount = Application.WorksheetFunction.CountIf(Sheet1.Rows(i), 0) + Application.WorksheetFunction.Cou ...
Sub yy() Dim brr(1 To 10000, 1 To 5) arr = .CurrentRegion Set regx = CreateObject("vbscript.regexp") regx.Pattern = "(\d{6})(.*省)(.*市)(.*)" For i = 1 To UBound(arr) Set mh = regx.Execute(arr(i, 1))   ...
Sub yy() Dim brr(1 To 10000, 1 To 5) arr = .CurrentRegion Set regx = CreateObject("vbscript.regexp") regx.Pattern = "(\d{6})(.*省)(.*市)(.*)" For i = 1 To UBound(arr) Set mh = regx.Execute(arr(i, 1))   ...