vijehspaul
Member
Hi,
Below is my situation:
Want to look for a word (text) and once find, i need to select the column.
When searched on net, i got find function help.
Code is below:
It gives me the cell address ( eg: $K$1)
I need to select the entire column. in this case column K
Please help
Below is my situation:
Want to look for a word (text) and once find, i need to select the column.
When searched on net, i got find function help.
Code is below:
Code:
With Worksheets(1).Range("a1:aa1")
Set c = .Find("text to find", lookin:=xlValues)
If Not c Is Nothing Then
address = c.Address
Else
MsgBox "Nothing to find"
End If
End With
I need to select the entire column. in this case column K
Please help