Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
couriced
 
Posts: n/a
Default Have cell require input before saving.


Is there a way to easily have a cell (or cells) require input, or the
file cannot be saved? I have a simple formula setup at the moment that
simply warns if no entry is detected, however, that doesn't stop end
users from simply submitting the form anyway....


--
couriced
------------------------------------------------------------------------
couriced's Profile: http://www.excelforum.com/member.php...o&userid=26900
View this thread: http://www.excelforum.com/showthread...hreadid=477897

  #2   Report Post  
Otto Moehrbach
 
Posts: n/a
Default Have cell require input before saving.

You would need a macro that is triggered by the save command. Such a macro
would check what you want checked, and if the conditions are not met the
save command would be cancelled. The macro can also display a message box
telling the user the error of his ways and what he must do before he can
save the file.
The macro would look like this:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
If Sheets("This").Range("A1")="" Or Sheets("That").Range("C5")="" Then
Cancel = True
MsgBox "Such and such."
End If
Post back if this fits with what you want and you need more. This macro
must be placed in the workbook module. To do that, right-click on the Excel
icon immediately left of the word "File" in the menu across the top of your
sheet, select View Code, and paste this macro in that module. Change the
sheet name(s) and cell addresses as needed. HTH Otto
End Sub
"couriced" wrote in
message ...

Is there a way to easily have a cell (or cells) require input, or the
file cannot be saved? I have a simple formula setup at the moment that
simply warns if no entry is detected, however, that doesn't stop end
users from simply submitting the form anyway....


--
couriced
------------------------------------------------------------------------
couriced's Profile:
http://www.excelforum.com/member.php...o&userid=26900
View this thread: http://www.excelforum.com/showthread...hreadid=477897



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict input into cell array dlp1848 Excel Discussion (Misc queries) 1 September 26th 05 08:35 PM
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
Cell Value Updated based cell input DC Excel Discussion (Misc queries) 2 August 17th 05 11:07 PM
Format spreadsheet so no input allowed if certain cell is =<0 Jan Buckley Excel Worksheet Functions 9 January 26th 05 12:21 AM
input value in a cell when the previous cell is greater than 0 vinod New Users to Excel 1 December 2nd 04 06:15 PM


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"