View Single Post
 
Old 08-09-2022, 06:23 PM
shanshan89 shanshan89 is offline Windows 10 Office 2019
Novice
 
Join Date: Jul 2022
Posts: 17
shanshan89 is on a distinguished road
Default

Hi Greg,

I realised I accidentally added a duplicate value in one of my excel sheets, hence the "display name already exist" error.

However, I'm still getting the "invalid use of null" error.

The line in bold below is the line with error. Was just wondering if the indentation affects how the code runs?

For lngIndex = 0 To UBound(arrData1, 2)
If Not IsNull(UBound(arrData1, 2)) Then
oCC.DropdownListEntries.Add arrData1(0, lngIndex), arrData1(0, lngIndex)
End If
Next
Reply With Quote