With the following code, the function only msgbox's "variable declaration" and "before for/each". i put them in there for debugging when i saw that my function wasn't getting all the way through.
Any suggestions?
Option Explicit
Function ArrToCSV(ByVal array)
msgbox "variable declaration"
Dim strTemp
Dim strQuote
Dim x
strQuote = Chr(34)
msgbox "before for/each"
For each x in array
msgbox x
strTemp = strTemp & strQuote & x & strQuote & vbcrlf
Next
msgbox "after for/each"
Set ArrToCSV = strTemp
End Function