Hello everyone,
I keep facing this pop-up window eventough the VBA code works well.
Anyone can help what's wrong with my code? i'm kinda new to these codings.
I keep facing this pop-up window eventough the VBA code works well.
Anyone can help what's wrong with my code? i'm kinda new to these codings.
VBA Code:
Private Sub Workbook_Open()
Dim Issue As String
Dim RowNrNumeric As Integer
Dim RowNrString As String
Dim CloumnNameIssue As String
Dim CloumnNameDate As String
Dim CloumnNameRemStatus As String
Dim DueDate As Date
Dim RemStatus As String
Dim TextDay As String
Dim TextMonth As String
Dim TextYear As String
Dim CloumnOrder As String
Dim Order As String
CloumnNameIssue = "F"
CloumnNameDate = "C"
CloumnNameRemStatus = "K"
CloumnOrder = "A"
RowNrNumeric = 3
RowNrString = RowNrNumeric
Issue = Range(CloumnNameIssue + RowNrString).Value
DueDate = Range(CloumnNameDate + RowNrString).Value
RemStatus = Range(CloumnNameRemStatus + RowNrString).Value
Order = Range(CloumnOrder + RowNrString).Value
Do While Issue <> ""
If (RemStatus = "ON" And DateDiff("d", DueDate, Date) >= -1) Then
TextDay = Day(DueDate)
TextMonth = Month(DueDate)
TextYear = Year(DueDate)
MsgBox "Please update item no." + Order & vbCrLf & Issue & vbCrLf & "Due Date is : " + TextDay + "-" + TextMonth + "-" + TextYear
End If
RowNrNumeric = RowNrNumeric + 1
RowNrString = RowNrNumeric
Issue = Range(CloumnNameIssue + RowNrString).Value
DueDate = Range(CloumnNameDate + RowNrString).Value
RemStatus = Range(CloumnNameRemStatus + RowNrString).Value
Order = Range(CloumnOrder + RowNrString).Value
Loop
End Sub