Hi,
I am using the following VBA macro
Sub OpenFXRates()
Dim RetVal
Dim FilePath As String
FilePath = """[FilePath]"""
RetVal = Shell("C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE " & FilePath, vbMaximizedFocus)
End Sub
The file that is opened in a new window contains the following formula:
=DSGRID("MLEJREE","RI","-1D","","D","RowHeader=true;ColHeader=true;Code=true;DispSeriesDescription=false;YearlyTSFormat=false;QuarterlyTSFormat=false","")
This gives a #NAME? error even though all TR systems are up and running. Once I close the file and reopen it manually the file runs perfectly.
Any idea what causes this error?
Kind regards,
Floris