I am writing a script that will loop through an Excel spreadsheet and find if there are duplicates of selected cells. If there are duplicates then the function will return
You always can use "isArray()" function
Dim yourArray as variant if not isArray(your_array) then msgbox("empty") else msgbox("with data") end if