Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I created an account form in Excel that is filled in by others when they want
a new account to be set up. There is one cell in particular that they have to fill in, but very often do not. I was hoping there was something in Excel that would stop them from saving the spreadsheet unless this cell is filled in. Any help would be appreciated. Thanks so much. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Alt +F11 to open VB editor, double click 'This Workbook' and paste this in on the right. Change the cell to the one you want and tidy up the message Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If Not IsDate(Sheets("Sheet1").Range("A1").Value) Then MsgBox "You must fill in cell xxxxxx" Cancel = True End If End Sub Mike "Churley" wrote: I created an account form in Excel that is filled in by others when they want a new account to be set up. There is one cell in particular that they have to fill in, but very often do not. I was hoping there was something in Excel that would stop them from saving the spreadsheet unless this cell is filled in. Any help would be appreciated. Thanks so much. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike H,
Thanks so much. This worked fine. "Mike H" wrote: Hi, Alt +F11 to open VB editor, double click 'This Workbook' and paste this in on the right. Change the cell to the one you want and tidy up the message Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If Not IsDate(Sheets("Sheet1").Range("A1").Value) Then MsgBox "You must fill in cell xxxxxx" Cancel = True End If End Sub Mike "Churley" wrote: I created an account form in Excel that is filled in by others when they want a new account to be set up. There is one cell in particular that they have to fill in, but very often do not. I was hoping there was something in Excel that would stop them from saving the spreadsheet unless this cell is filled in. Any help would be appreciated. Thanks so much. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Glad I could help
"Churley" wrote: Mike H, Thanks so much. This worked fine. "Mike H" wrote: Hi, Alt +F11 to open VB editor, double click 'This Workbook' and paste this in on the right. Change the cell to the one you want and tidy up the message Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If Not IsDate(Sheets("Sheet1").Range("A1").Value) Then MsgBox "You must fill in cell xxxxxx" Cancel = True End If End Sub Mike "Churley" wrote: I created an account form in Excel that is filled in by others when they want a new account to be set up. There is one cell in particular that they have to fill in, but very often do not. I was hoping there was something in Excel that would stop them from saving the spreadsheet unless this cell is filled in. Any help would be appreciated. Thanks so much. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
My hyperlinks stop working on saving the workbook | Excel Discussion (Misc queries) | |||
Losing Cell Protection When Saving Workbook | Excel Discussion (Misc queries) | |||
Using macro to stop user from emailing workbook | Excel Discussion (Misc queries) | |||
Prevent user from saving workbook | Excel Discussion (Misc queries) | |||
I want a macro to save a workbook as a user inputted cell | Excel Discussion (Misc queries) |