I am trying find a certain text (x) in the first row of a column exactly in file (DestDat) and when found replace one of the cells below it, with (x):
Dim x As Variant
Dim R As clsFind
Set R = New clsFind
Do While Not IsEmpty(ActiveCell.Value)
x = ActiveCell.Value
Dim dataContent As Variant
dataContent = Cells(SrcRow, ActiveCell.Column).Value
DestDat.Activate
Dim wsCount As Integer
If R.FindColumn(x, DestDat) Then
DestDat.Activate
R.GetWorksheet.Activate
Cells(DestRow, R.GetColumn.Column).Value = dataContent
End If
In this case above, If I am looking for "Door6", and then it finds "Door60", then it stops because it assumes that it found it because "Door6" is a subset of "Door60"
However, I want an exact match. If the (x) is "Door6" then it should loom for that only as an exact match.
Is there any way of doing that?
Dim x As Variant
Dim R As clsFind
Set R = New clsFind
Do While Not IsEmpty(ActiveCell.Value)
x = ActiveCell.Value
Dim dataContent As Variant
dataContent = Cells(SrcRow, ActiveCell.Column).Value
DestDat.Activate
Dim wsCount As Integer
If R.FindColumn(x, DestDat) Then
DestDat.Activate
R.GetWorksheet.Activate
Cells(DestRow, R.GetColumn.Column).Value = dataContent
End If
In this case above, If I am looking for "Door6", and then it finds "Door60", then it stops because it assumes that it found it because "Door6" is a subset of "Door60"
However, I want an exact match. If the (x) is "Door6" then it should loom for that only as an exact match.
Is there any way of doing that?