i want to remove the cancel button to force a user to enter there name before they can access the workbook. if i can make the cancel button close the workbook with a error message that would be good.
The input box that asked for the week start date i would like to not be shown if there is already a date in the cell F4.
ANY HELP WOULD BE MUCH APPRECIATED
thank you
my current code is this
Private Sub Workbook_Open()
Worksheets("sheet1").Activate
Dim emptyrow As Long
emptyrow = WorksheetFunction.CountA(Sheets("sheet1").Range("B:B")) + 1
Cells(emptyrow, 2).Value = Date & " " & Time
Application.DisplayAlerts = False
Sheets("sheet1").Range("E3").Value = InputBox("Enter Your Name", "Authentication")
Range("F4").Value = InputBox("Enter the week start date (dd/Month/yyyy) Note- You must enter the month in text form", "Welcome to the York Cash Collection Workbook " & Sheets("sheet1").Range("E3"))
emptyrow = WorksheetFunction.CountA(Sheets("sheet1").Range("A:A")) + 1
Cells(emptyrow, 1).Value = (Sheets("Sheet1").Range("E3"))
The input box that asked for the week start date i would like to not be shown if there is already a date in the cell F4.
ANY HELP WOULD BE MUCH APPRECIATED
thank you
my current code is this
Private Sub Workbook_Open()
Worksheets("sheet1").Activate
Dim emptyrow As Long
emptyrow = WorksheetFunction.CountA(Sheets("sheet1").Range("B:B")) + 1
Cells(emptyrow, 2).Value = Date & " " & Time
Application.DisplayAlerts = False
Sheets("sheet1").Range("E3").Value = InputBox("Enter Your Name", "Authentication")
Range("F4").Value = InputBox("Enter the week start date (dd/Month/yyyy) Note- You must enter the month in text form", "Welcome to the York Cash Collection Workbook " & Sheets("sheet1").Range("E3"))
emptyrow = WorksheetFunction.CountA(Sheets("sheet1").Range("A:A")) + 1
Cells(emptyrow, 1).Value = (Sheets("Sheet1").Range("E3"))