2016-07-10 14 views

答えて

0
Dim y, x, search as Integer 
Dim searchRadius as Integer 'Radius of Cells you want to search in (e.g. 100x100) 

search = TextBox1.Value  'set search to something 
y = 1 
x = 2 

For y = 1 To searchRadius 
    If Cells(y, x) = search Then 
     Cells(y, 1).Value = Cells(y, 1).Value + search 
     Cells(y, x).Select 
     Cells(y, x) = "" 
    End If 
    If y = searchRadius and x <= searchRadius Then 
     x = x + 1 
     y = 0 
    End If 
Next y 

からの値があなたのためにこの作業を行いクリア?

関連する問題