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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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