Reading Excel Data from Project

G

glenn

Using the following code from Project's VBE, you can launch Excel
automatically.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Sub showexcel()
' You can also use the return value of the Shell function.
ReturnValue = Shell("c:\EXCEL\EXCEL.EXE", 1) ' Run Microsoft Excel.
AppActivate ReturnValue ' Activate Microsoft
' Excel
End Su
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

My question is this. Is it possible to read data from a UserForm
in Project's VBA without actually launching an Excel spreadsheet?

Thanks,
glenn
 
J

JackD

If you mean a project user form, then yes, you can have project userforms
just like you have in excel.
If all you need is data from a userform why bother with excel at all?
Perhaps I am not understanding your question.
 
G

glenn

Jack,

Let me clarify. I want to read Excel data while in Project from a Project
UserForm without actually opening Excel.

Thanks,
glenn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top