in a worksheet I want to select the inputbox's input i.e. suppose "A" which is incurred in multiple cells in multiple location. I want to select all the cells referring to letter "A" at the same time.
Option Explicit
Sub SelectBattleship()
    Dim BattleShip As Range
    Dim Name As String
    Dim store As Variant
    Dim cell As Range
    Set BattleShip = Range("A1:J10")
    Name = InputBox("Value?")
    For Each cell In BattleShip
        If cell = Name Then
            store = cell.AddressLocal & cell.AddressLocal
        End If
    Next cell
    store.Select
End Sub
I expect all the cells containing the letter "A" will be selected together.
 
     
    