Hi All,
How to write a simple marco to find a string "Block" in cell and then output the string after "Block".
If Range("A1") = Block 0xA: sys_param_hdr_init
or
Range("A1") = HS Block A. CP parameters
then output w=0A
[vba]Sub Marco()
Dim w as string
With Application.FindFormat.Font
.FontStyle = "Bold"
.Subscript = False
End With
Cells.Find(What:="Block", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=True).Activate
w = Application.ActiveCell.Value
End Sub[/vba]
Thanks,
Ann