Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Temporary suspend the validation

Hi all,

Any method to temporary suspend the validation by clicking a button?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Temporary suspend the validation

well, you could code a button to check for validation & then either
delete it or add the specific one you want.........
for instance, i use validation a lot to "lock" cells for my basic-
level-excel users, so i recorded a macro while i did one & then
assigned it to a button:

Sub LockFormulaValidation()
'
' LockFormulaValidation Macro
' Macro recorded 8/25/2006 by Susan
'
With Selection.Validation
.Delete
.Add Type:=xlValidateCustom, AlertStyle:=xlValidAlertStop,
Operator:= _
xlBetween, Formula1:="="""""
.IgnoreBlank = False
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = "FORMULA CELL"
.InputMessage = ""
.ErrorMessage = "No manual calculation allowed!"
.ShowInput = False
.ShowError = True
End With
End Sub

try using the macro recorder to set up the validation. then record
another one deleting it. then you can put them together in a button.
susan


On Mar 12, 2:19 am, "jimmy" wrote:
Hi all,

Any method to temporary suspend the validation by clicking a button?

Thanks



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
suspend auto increment Bill Johnson Excel Discussion (Misc queries) 6 February 8th 08 06:26 PM
suspend a routine Patrick Simonds Excel Programming 2 May 29th 06 10:18 PM
Suspend Execution Kaval Excel Programming 1 August 11th 05 09:21 AM
Suspend code John Excel Programming 0 August 18th 04 03:15 PM
Screen suspend eyecalibrate[_3_] Excel Programming 2 March 3rd 04 04:44 PM


All times are GMT +1. The time now is 04:24 AM.

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

About Us

"It's about Microsoft Excel"