https://bugs.documentfoundation.org/show_bug.cgi?id=149151
--- Comment #4 from Jean-Pierre Sanchez <jeanpierresanchez0...@protonmail.com> --- The following line raises an error arr = Iif(True, Array("A","B"), Array("B","A")) ' Raises an error The following line does not work properly: arr = "A" arr = Iif(False, Array("A","B"), Array("B","A")) ' IIF exposes the same issue when with functions returning an Array Sub Main arr = Iif(true, getArray1(), getArray2()) End Sub Function getArray1() As Variant arr = Array("A","B") getArray1 = arr End Function Function getArray2() As Variant arr = Array("B","A") getArray2 = arr End Function -- You are receiving this mail because: You are the assignee for the bug.