excel - Expected array when calling function -


i'm trying learn little vba i'm in process of saving ranges csv files.

however, i'm having trouble line of code

call saverangeascsv(selectdown("b5:d5"), "c:\test\test.csv", true) 

and here snippet of selectdown function.

private function selectdown(range string) range     selectdown = range(range, activecell.end(xldown)).select  end function 

i error: expected array. cannot seem understand problem is. appreciated :-)

it sounds function saverangeascsv expecting array, passing in range. function not built-in excel function, can't check it. maybe check arguments expecting?


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -