ClimoC
Well-known Member
- Joined
- Aug 21, 2009
- Messages
- 584
Hello,
was wondering if I can stop a user from saving the workbook if a condition fails?
Easiest condition would be
So in words - if any cell in the mentioned range is red, then do not allow a user to save the workbook (or saveas). Otherwise, proceed with the save command.
was wondering if I can stop a user from saving the workbook if a condition fails?
Easiest condition would be
Code:
For each c in Range("M6:M1000")
If c.interior.colorindex = 3 Then
'Do not allow to save
Else
'Allow to save
End If
Next
So in words - if any cell in the mentioned range is red, then do not allow a user to save the workbook (or saveas). Otherwise, proceed with the save command.