Option Explicit
Sub MultiSelect()
Dim Cell As Range
Range("A1:A19, A1:G3, A17:G19, C3:C9, C11:C17, E3:E17, " & _
"G1:G19, I2:I11, I10:M11, I13:M19, M2:M11").Select
MsgBox "This is the selection, we'll now add some values" & vbLf & _
"(x) and search the selection for these values"
Range("F18, M18, H1:H19") = "x"
For Each Cell In Selection
If Cell Like "*x*" Then MsgBox "An ''x'' was found at " & Cell.Address
Next Cell
MsgBox "(The selection values will now be changed)"
Range("H1:H19").ClearContents
Selection = "HELLO"
MsgBox "The selection values have all been changed"
MsgBox "The selection values will now be cleared"
Selection.ClearContents
End Sub
|