Advertisement
Advertisement
| 05.09.2008 at 12:07PM PDT, ID: 23390531 |
|
[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: |
Private Sub Worksheet_Change(ByVal Target As Range)
Dim targ As Range
Dim Date1 As Variant
Dim Date2 As Variant
Dim X As Integer
Dim MyRange As Range
Dim MatchString As String
X = 5
Set targ = Intersect(Range("L5:L65536"), Target)
If (Not targ Is Nothing) Then
Do While Not IsEmpty(Cells(X, 12))
Date1 = CDate(Cells(X, 12))
Date2 = Now()
If IsDate(Date2) And IsDate(Date1) Then
Cells(X, 2) = DateDiff("d", Now(), Cells(X, 12))
Else
MsgBox ("Type valid date in Deadline cell")
End If
X = X + 1
Loop
Else
Set targ = Intersect(Range("O5:O65536"), Target)
If (Not targ Is Nothing) Then
Call Addrows
Else
End If
End If
End Sub
Sub Addrows()
Dim MyRange As Range
Dim MatchString As String
On Error Resume Next
Set MyRange = Columns("O")
On Error GoTo 0
If MyRange Is Nothing Then Exit Sub
MatchString = ActiveCell.Value
If MatchString = "Yes" Then
ActiveCell.Offset(-1).EntireRow.Insert
End If
End Sub
|