W
Wahab
Hi
Is there anyway I can use Excel formulas in Access? If Yeas then How? Pls.
Thanks
Is there anyway I can use Excel formulas in Access? If Yeas then How? Pls.
Thanks
Wahab said:Hi
Is there anyway I can use Excel formulas in Access? If Yeas then How? Pls.
Thanks
Public Function XL360(DateStart As String, DateEnd As String) As Double ....
End Sub
AnandaSim said:Uh, you mean End Function.
And if the example is early bound.
The call needs to load the Excel.exe file into memory and release it
every time - this causes a split second pause every invocation on my
system.
Might be worthwhile leaving excel.exe in memory until the batch of
invocations are complete.
oops, I certainly did. That's what I get for typing code directly into a
newsgroup post.
If used in a loop, I'd agree that you wouldn't destroy your Excel object
until the end of the function, but it's never a good idea to leave an object
dangling possibly in scope. VBA has a bad habit of not always cleaning up
also easier to code with Intellisense. Many programmers will use early
binding to write the code, then switch to late binding in production. For
the code I provided, the difference in speed would be totally unnoticeable.
If calling multiple times, the Windows OS would usually cache Excel.exe in
memory, not to unload it completely between calls unless you have quite some
time between those calls, or your computer is running out of memory. I
generally have my clients to put enough RAM in their machines that even
virtual memory is rarely used.
Yes, I saw that. First invocation was a fraction of a second slower
than subsequent invocations. I have 2Gb RAM on my PC - there was still
hard disk movement in subsequent invocations.....