Thanks,
Jeff Miller
You will probably want only the last line...
Set SPSSApp = CreateObject("SPSS.Application")
Set SPSSDoc = SPSSApp.NewDataDoc ' or SPSSApp.OpenDataDoc("c:\file.sav")
SPSSDoc.Visible = True
SPSSApp.ExecuteInclude "c:\mysyntax.sps", True
The syntax code is
INSERT FILE = "c:\folder4SPSS\DefineGlobals.sps".
INSERT FILE = "c:\folder4SPSS\BringInTheExcelData.sps".
SCRIPT "c:\folder4SPSS\MainProgram.sbs".
EXECUTE.
The globals insert must be working because the Excel data shows up in
the Data Editor as requested in the second insert. But, when it gets to
the MainProgram script, a combo box should appear. SPSS just hangs with
a message at the bottom reading "Script Running". It's as if it is
waiting for a user selection but there is nothing to be seen but the
data.
Any ideas?
Jeff
SCRIPT "c:\folder4SPSS\MainProgram.sbs".
What is in this file? How bout showing us the dirty bits ;-)
Neila