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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -