0
我需要您的幫助才能找到Excel vba代碼。我有輸入行作爲RNC名稱和CellID。在連接列中,我使用連接公式來組合RNC名稱和CellID。它是通過一個記錄的宏,需要非常長的時間完成複製/粘貼特殊的3-500,000個單元格作爲值。更快計算500,000行
RNC Name CELLID Concatenate Cell Name Count
RNCBESI05 10621 RNCBESI05_10621 ALJRMG_1 31
RNCBESI05 10621 RNCBESI05_10621 ALJRMG_1 31
RNCBESI05 10621 RNCBESI05_10621 ALJRMG_1 31
請問請您建議如何計算1/2M細胞更快?
記錄碼:
Sheets("Neighbor").Select
Range("C2").Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[-2],""_"",RC[-1])"
Range("D2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Cell!C[-3]:C,4,0)"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=COUNTIF(C[-1],RC[-1])"
Range("C2:E2").Select
Selection.Copy
Range("B2").Select
Selection.End(xlDown).Offset(0, 1).Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.End(xlUp).Select