How do i execute a public funtion at runtime?
VB Code:
Public Function FG_SaveAsExcel(FG As MSFlexGrid, sFileName As String, Optional sHeader As String = "", Optional sFooter As String = "")
Thats the function I want to run.
Printable View
How do i execute a public funtion at runtime?
VB Code:
Public Function FG_SaveAsExcel(FG As MSFlexGrid, sFileName As String, Optional sHeader As String = "", Optional sFooter As String = "")
Thats the function I want to run.
It doesn't have a return value, so it should be a subroutine.
Just use a CALL statement to call the subroutine, with the parameters.
Code:CALL FG_SaveAsExcel(flxGrid, "filename", "Header")
Or without the Call, same difference. ;)
VB Code:
FG_SaveAsExcel flxGrid, "filename", "Header"