B
BurtArkin
Using the code below, I create a temporary data file in the dblink file, then
open an excel file, fasb.xls.
DoCmd.OpenQuery "FASBMakeTempQry"
DoCmd.CopyObject "c:\dblink.mdb", , acTable, "FASBTableTemp"
Dim MyFile
MyFile = "C:\fasb.xls"
Me.Refresh
Dim x As Long
x = Shell("C:\Program Files\Microsoft Office\Office10\excel.exe" & " " &
Chr(34) & MyFile & Chr(34), 1)
What I want to do is then run an excel macro (that already exists in the
excel file) which would automatically import the data from the temporary
file. Can I do that? I'd appreciate all the help I can get. Thanks
open an excel file, fasb.xls.
DoCmd.OpenQuery "FASBMakeTempQry"
DoCmd.CopyObject "c:\dblink.mdb", , acTable, "FASBTableTemp"
Dim MyFile
MyFile = "C:\fasb.xls"
Me.Refresh
Dim x As Long
x = Shell("C:\Program Files\Microsoft Office\Office10\excel.exe" & " " &
Chr(34) & MyFile & Chr(34), 1)
What I want to do is then run an excel macro (that already exists in the
excel file) which would automatically import the data from the temporary
file. Can I do that? I'd appreciate all the help I can get. Thanks