Sub Macro2()
'
' Macro2 Macro
' try2
'
'
Range("C15:D15").Select
IgnoreBlank = Range("C15")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "10"
Range("C19:D19").Select
IgnoreBlank = Range("C15")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!ArmTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C11:D11").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C24:D24").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C24")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Meter Scan,Sheet1,Sheet2,Sheet3"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C11:D11").Select
IgnoreBlank = Range("C24")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Meter Scan,Sheet1,Sheet2,Sheet3"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!DataLocationWorksheet0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "2"
Range("C13:D13").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C13")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Run Once,Run Continuously"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C11:D11").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "3"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "4"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "5"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "6"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "7"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "8"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "9"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
Range("C19:D19").Select
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!TaskStatusCmds0_DisplayStyle", RefersToR1C1:="=1"
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveCell.FormulaR1C1 = "10"
Range("C11:D11").Select
IgnoreBlank = Range("C19")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="INF,{value}"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWorkbook.Worksheets("Meter Scan").Names.Add Name:= _
"'Meter Scan'!SampleTriggerCount0_DisplayStyle", RefersToR1C1:="=2"
IgnoreBlank = Range("C11")
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Record,Start,Trigger,Stop,Reset,Clear"
.IgnoreBlank = True
.InCellDropdown = True
.ShowInput = True
.ShowError = True
End With
ActiveWindow.SmallScroll Down:=18
End Sub
this is the full idea of what the coding should be..
can you try to understand and help to explain to cleverless me..
please.
or you should try make correction as before.
sincerely need your help