Advertisement
| 09.28.2008 at 03:53PM PDT, ID: 23770105 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: |
Public Sub RunPhoneifier()
Set w1 = Worksheets("incoming")
Set w2 = Worksheets("vv1")
Set w2a = Worksheets("vv2")
Set w3 = Worksheets("current")
Set w4 = Worksheets("archive")
w3.Cells.Clear
Dim r, c, r1, c1, r2, c2, r3, c3, r4, c4 As Integer
Dim regid, regid1, phone As String
Dim match As Boolean
w1ID = 1
'put in phone column # if incoming has a phone number
w2Phone = 1
w2ID = 2
With w1
w1LR = .Cells(.Rows.Count, "A").End(xlUp).Row + 1
End With
With w2
w2LR = .Cells(.Rows.Count, "A").End(xlUp).Row + 1
End With
With w2a
w2aLR = .Cells(.Rows.Count, "A").End(xlUp).Offset(1).Row + 1
End With
With w4
w4LR = .Cells(.Rows.Count, "A").End(xlUp).Offset(1).Row + 1
End With
Debug.Print w1LR
r1 = 2
r3 = 1
r3lr = 2
Do Until r1 >= w1LR
regid = w1.Cells(r1, w1ID).Value
Debug.Print regid
r2 = 2
Do Until r2 >= w2LR
regid1 = w2.Cells(r2, w2ID).Value
If regid1 = regid Then
phone = w2.Cells(r2, w2Phone).Value
w4.Cells(w4LR, 1).Value = regid
w4.Cells(w4LR, 2).Value = phone
w4.Cells(w4LR, 3).Value = Now()
w4LR = w4LR + 1
match = False
Do Until r3 >= r3lr Or match = True
If phone = w3.Cells(r3, 1) Then
match = True
Else: r3 = r3 + 1
End If
Loop
If match = False Then
w3.Cells(r3lr, 1).Value = phone
r3lr = r3lr + 1
End If
r2 = w2LR
Else: r2 = r2 + 1
End If
Loop
r1 = r1 + 1
Loop
End Sub
|
Advertisement