Hi Guys I am new to the forum
I am new to vba and I am trying to code a bit of automation..
What I am trying to accomplish is matching the time to the specific code "A207"
and cutting the value and pasting it to another column..
here is what I got
Dim rng As Range
Dim rngFound As Range
Dim cellNumber As Integer
Set rng = Range("C:C")
Set rngFound = rng.Find("A207")
cellNumber = 1
Do While cellNumber < 500
cellNumber = cellNumber + 1
If Range("D" & cellNumber) = rngFound Then
Selection.Cut
Range("G" & cellNumber).Paste
Else
End If
Loop
Thanks,
M
I am new to vba and I am trying to code a bit of automation..
What I am trying to accomplish is matching the time to the specific code "A207"
and cutting the value and pasting it to another column..
here is what I got
Dim rng As Range
Dim rngFound As Range
Dim cellNumber As Integer
Set rng = Range("C:C")
Set rngFound = rng.Find("A207")
cellNumber = 1
Do While cellNumber < 500
cellNumber = cellNumber + 1
If Range("D" & cellNumber) = rngFound Then
Selection.Cut
Range("G" & cellNumber).Paste
Else
End If
Loop
Thanks,
M