I am creating a function in VB Editor (in excel sheet). I call this function by typing =funName() in a cell.
This function is supposed to fetch data from database depending on passed parameters and display fetched data in the Sheet1.
To display data I write "Sheet1.Cells(rowno,1)=DBValue" in function funName() but when I call this function by typing =funName(a,b,c) in a cell, it does not display data in Sheet1 however it is fetching data from database. I tested this by putting recordset in an global array(instead of displaying in sheet1) and display this global array by making another procedure and called this procedure from Tools->Macro->Run.
I want to call the function from cell only [=funName(a,b,c)]
This function is supposed to fetch data from database depending on passed parameters and display fetched data in the Sheet1.
To display data I write "Sheet1.Cells(rowno,1)=DBValue" in function funName() but when I call this function by typing =funName(a,b,c) in a cell, it does not display data in Sheet1 however it is fetching data from database. I tested this by putting recordset in an global array(instead of displaying in sheet1) and display this global array by making another procedure and called this procedure from Tools->Macro->Run.
I want to call the function from cell only [=funName(a,b,c)]