Hallo Wissende, in der Hilfe steht dieses Beispiel: =VERWEIS("C";{"a"."b"."c"."d";1.2.3.4}) Wie setze ich das in Vba um?
"{" wird als ungültiges Zeichen angezeigt in:
MsgBox Application.WorksheetFunction.Lookup("C",{"a"."b"."c"."d",1.2.3.4})
Gruß Reinhard
Hallo Reinhard,
alles was in Excel in geschweiften Klammern steht, ist in VBA ein Array:
MsgBox Application.WorksheetFunction.Lookup("C", Array("a", "b", "c", "d"), Array(1, 2, 3, 4))
Gruß Nepumuk Excel & VBA Beispiele