I am trying to work on the dictionary object returned by a function. But the returned dictionary is empty when it comes out of the function.
public function getval(col, workSheet)
Set dict = CreateObject("Scripting.Dictionary")
For each c in col
dict.Add c, ""
For j=0 to dict.Count-1
i(j)=calls another function
I call the function like this
Set colV =getVal(col,workSheet )
But the colV is empty here, where as before the control comes out of the function getVal I can see the items in the dictionary.
Should I save the dictionary before getting out of the funciton?