I am trying to assign a Date to a table column. I get 1004 error on each Date column.
Public Type JobStatusDetailLine
...
PromisedShipDate As Date
LastOpDate As Date
ShipDate As Date
End Type
Public JobStatusDetailArr() As JobStatusDetailLine
For i = 1 To UBound(JobStatusDetailArr)
Dim newLabRow As ListRow
Set newLabRow = tbl.ListRows.Add
With newLabRow
.Range(1) = JobStatusDetailArr(i).SalesGroup
.Range(2) = JobStatusDetailArr(i).BuildLocation
.Range(3) = JobStatusDetailArr(i).ProjectManager
.Range(4) = JobStatusDetailArr(i).Customer
.Range(5) = JobStatusDetailArr(i).JobNum
.Range(6) = JobStatusDetailArr(i).AssemblySeq
.Range(7) = JobStatusDetailArr(i).PartNum
.Range(8) = JobStatusDetailArr(i).PartDesc
.Range(9) = JobStatusDetailArr(i).ProdQuantity
.Range(10) = JobStatusDetailArr(i).JobReleased
.Range(11) = JobStatusDetailArr(i).PromisedShipDate
.Range(12) = JobStatusDetailArr(i).LastOpDate
.Range(13) = JobStatusDetailArr(i).ShipDate
End With
Next i
Error occurs on Columns 11, 12 and 13. Do I need to do something specific to assign a date? I am sure I have done this in the past with no problem.