Hi, Bertie
I am attaching my code here, Can you review it and tell me where i am lacking because it always show up the message box and once i enter the value it will never stop, I want that once the mesgbox came up it will stop until the user press the save button again.
Private Sub btn_Save_Click()
Dim rw As Long
Dim col As Long
Dim msg As String
For rw = 2 To 6
For col = 1 To 5
With Sheets("Sheet1").Cells(rw, col)
If .Value = "" Then
.Interior.ColorIndex = 3 'red
msg = InputBox("Please Enter Row: " & rw & " " & Sheets("Sheet1").Cells(1, col).Value)
.Value = msg
End If
End With
msg = ""
Next col
Next rw
Dim Path As String
Dim FileName1 As String
Dim Date1 As String
Dim FileName2 As String
Path = "
C:\Desktop"
formatted_time = Format(Now, "hh-mm")
formatted_date = Format(Now, "mm-dd-yyyy")
'MsgBox formatted_date
FileName1 = Range("B2")
FileName2 = Range("N2")
ActiveWorkbook.SaveAs Filename:=Path & formatted_date & ", " & formatted_time & ", " & FileName2 & ".xls", FileFormat:=xlNormal
MsgBox "File Saved on shared folder
"
ActiveWindow.Close
Dim lRow As Integer, Ans As String
lRow = 2
'Ans = MsgBox("Do you want to clear the data?", vbQuestion + vbYesNo, "Clear Data")
lRow = Sheets("EEA Referral Tracker").Range("A65536").End(xlUp).Row
If lRow > 1 Then
Range("A2:AG" & lRow).Delete
End If
' Dim SaveCommonFile As String
'Path = "C:\Users\xf37\Desktop\RCO Referrals"
'ActiveWorkbook.SaveAs Filename:=Path & ".xls", FileFormat:=xlNormal
End Sub