Hello, I'm familiar with Excel VBA but new to JMP scripting. I'm currently using JMP 11.
I'd like to open an Excel workbook (with a single worksheet) and save it as a JMP data table, so I can run a JMP analysis on it.
How do I reference the unsaved JMP data table created by this VBA code?
Dim app As JMP.Application
Dim doc As JMP.Document
Dim dt As JMP.DataTable
'Start JMP
Set app = CreateObject("JMP.Application")
app.Visible = True
'Open Excel workbook containing single sheet of data
app.OpenDocument ("C:\jmp\Data.xlsx")
When I prefix the last line with "dt = ", I get an error.
Any suggestions would be appreciated.