Hallo Master,
I try to build reminder using VBA excel, and in my project I have 1000 date data,i want to copy paste my data with condition Today + 3 to New Workbook With Header Master file excel before.
and this is my VBA code
I try to build reminder using VBA excel, and in my project I have 1000 date data,i want to copy paste my data with condition Today + 3 to New Workbook With Header Master file excel before.
Code:
Lot Date
15 14-Nov-14
15 14-Nov-14
2 10-Sep-14
2 10-Sep-14
2 10-Sep-14
and this is my VBA code
Code:
Private Sub Workbook_Open()
Worksheets("Monitoring List CKD NSeries").Select
For Each cell In Range("B7:B1994") 'range cell
'menentukan value dari range kolom B yang seuai dengan tanggal hari ini + 3
If cell.Value = Date + 3 Then
Range("A6:EW6").Copy
Workbooks.Add
Range("A4").PasteSpecial xlPasteValues
Application.CutCopyMode = False
'setting warna sesuai cell
Cells(3, 2).Interior.ColorIndex = 3
Cells(3, 2).Font.ColorIndex = 1
Range("B3").Value = cell.Value 'menampilkan tanggal yang sesuai dengan tanggal hari ini +3
Application.Speech.Speak ("send reminder")
Application.Speech.Speak (cell.Offset(0, -1).Value)
ActiveWorkbook.SaveAs "D:\Users\muhammad.galih\Dekstop\Reminder Monitoring Lot"
'SendReminderMail
End If
Next
End Sub