Sub test()
Dim rng As Range
Dim cell As Range
Set rng = Union([A1:A5], [D1:D5], [G1:G5])
For Each cell In rng
If cell > 0 Then cell = "" Else cell = 1
Next cell
End Sub
Sub Test()
Dim i As Integer
Dim r As Range
Dim c As Range
i = 0
For Each r In Selection.Areas
For Each c In r
i = i + 1
c = i
Next c
Next r
End Sub
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 40