I3atnumb3rs
New Member
- Joined
- Nov 2, 2018
- Messages
- 34
Hello,
I would like to loop column j and if any part of the value in Q equals the string EXCHANGE, I want to concatenate the value in column k the Q, otherwise just put the string value in column q. My wildcard doesn't seem to work and even when the word EXCHANGE is in q and only entering the info in K. Help!
Sub ServiceLevel()
Dim strMyValue As String
strMyValue = "*EXCHANGE*"
Range("A2").Select
Do
ActiveCell.Offset(0, 9).Activate
If ActiveCell.Offset(0, 7).Value = "strMyValue" Then
ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[1], "" "", RC[7])"
Else: ActiveCell.FormulaR1C1 = ActiveCell.Offset(0, 1)
End If
ActiveCell.Offset(1, -9).Activate
Loop While ActiveCell.Value <> ""
End Sub
I would like to loop column j and if any part of the value in Q equals the string EXCHANGE, I want to concatenate the value in column k the Q, otherwise just put the string value in column q. My wildcard doesn't seem to work and even when the word EXCHANGE is in q and only entering the info in K. Help!
Sub ServiceLevel()
Dim strMyValue As String
strMyValue = "*EXCHANGE*"
Range("A2").Select
Do
ActiveCell.Offset(0, 9).Activate
If ActiveCell.Offset(0, 7).Value = "strMyValue" Then
ActiveCell.FormulaR1C1 = "=CONCATENATE(RC[1], "" "", RC[7])"
Else: ActiveCell.FormulaR1C1 = ActiveCell.Offset(0, 1)
End If
ActiveCell.Offset(1, -9).Activate
Loop While ActiveCell.Value <> ""
End Sub