An error have been annoying me since I recently updated Excel.
I have a string that has more than 255 characters, and I was using .AddType to write in a cell like this:
Maybe someone could help me with that please?
Thanks a lot!
I have a string that has more than 255 characters, and I was using .AddType to write in a cell like this:
Code:
formula = "a1,a2,a3,...,a200" 'string has near 600 characters
With ws.Range("C8").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=formula
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Maybe someone could help me with that please?
Thanks a lot!