Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to be able to inable and disable the input message boxes
(Data Validation Input Message) in all worksheets according to the dropdown message ("on" or "off") I select in cell A1 in Sheet1. I use Excel 2003. Are there any suggestions? Thanks for your help. Michael |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Michael,
Assuming that you only have one type of datavalidation per any cell with validation.... Sub ToggleInputMessages() Dim mySh As Worksheet Dim myR As range Dim myA As range Dim TurnOn As Boolean TurnOn = False If Worksheets("Sheet1").Range("A1").Value = "on" Then TurnOn = True For Each mySh In ActiveWorkbook.Worksheets Set myR = Cells.SpecialCells(xlCellTypeAllValidation) If myR Is Nothing Then GoTo NoValidation For Each myA In myR.Areas myA.Cells.Validation.ShowInput = TurnOn Next myA NoValidation: Next mySh End Sub -- HTH, Bernie MS Excel MVP wrote in message ... I would like to be able to inable and disable the input message boxes (Data Validation Input Message) in all worksheets according to the dropdown message ("on" or "off") I select in cell A1 in Sheet1. I use Excel 2003. Are there any suggestions? Thanks for your help. Michael |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bernie. I'll be giving it a try shortly.
Michael |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Font of message and input boxes | Excel Programming | |||
Macro disable message | Excel Programming | |||
How to disable MS Excel Clipboard message when I run a macro | Excel Programming | |||
How do I disable 'clipboard' message window in an Excel macro? | Excel Programming | |||
enable disable macro message | Excel Programming |