|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
Application.ScreenUpdating = 0
Application.EnableEvents = 0
Dim arr, r&, d As Object
r = Target.Row
Set d = CreateObject("scripting.dictionary")
arr = Sheets("BOM").[a1].CurrentRegion
For i = 2 To UBound(arr)
d(arr(i, 1)) = Array(arr(i, 3), arr(i, 4), arr(i, 5), arr(i, 6), arr(i, 7), arr(i, 8), arr(i, 9))
Next
Range("c" & r).Resize(1, 7) = d(Cells(r, 1).Value)
Application.ScreenUpdating = 1
Application.EnableEvents = 1
End If
End Sub
|
评分
-
1
查看全部评分
-
|