jmstarbuck
Programmer
I am exporting data to an excel worksheet. I would like to set default values for some of my columns, so that the user doesn't have to worry about those fields when he inserts a row.
Here's what I am doing now.
I found a reference to listdataformat.defaultvalue somewhere, but I can't figure out how it would fit in.
Is there a way to set a default value?
J
Here's what I am doing now.
Code:
With .Columns("A:A")
With .Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=ProgramYearCmb
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
'.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = "The value must be " & ProgramYearCmb & "."
.ShowInput = True
.ShowError = True
End With
End With
I found a reference to listdataformat.defaultvalue somewhere, but I can't figure out how it would fit in.
Is there a way to set a default value?
J