Hello
I have a code that will create some validation list:
The problem is: wen the code is running I received error 1004 (error on definition ..etc).. after that.. the pop up message with the error description (press debug), hit F5 again and the code is running fine
but all the time is stopping in this point ..see code bellow:
[vba]
ActiveSheet.Range("B4").Value = Me.ComboBox1.Value
With ActiveSheet.Range("C4").Validation
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="=INDEX(INDIRECT($B$4),,1)" 'her is stoping
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
[/vba]
any idea what is wrong?