Mark Brown
New Member
Hi,
I'm trying to write some code where it'll search each cell within a specified range and for each cell that contains "=MIK" it'll copy and paste each cell as a value. I've come up with the following but I think the .contains part isn't a valid command. Can anyone help? Thanks.
Option Explicit
Dim c as Range
Sheets("Trading Summary").Select
For Each c In Range("F36:M53")
If c.Contains = "=MIK" = True Then c.Copy c.PasteSpecial
Next c
I'm trying to write some code where it'll search each cell within a specified range and for each cell that contains "=MIK" it'll copy and paste each cell as a value. I've come up with the following but I think the .contains part isn't a valid command. Can anyone help? Thanks.
Option Explicit
Dim c as Range
Sheets("Trading Summary").Select
For Each c In Range("F36:M53")
If c.Contains = "=MIK" = True Then c.Copy c.PasteSpecial
Next c