In you PowerPoint code, in the VBA editor, go to the Tools menu,
choose References, and put a check next to Microsoft Excel Object
Model. Then, in your PPT code, do something like:
Sub ShowExcelForm()
Dim XLApp As Excel.Application
Dim WB As Excel.Workbook
On Error Resume Next
Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = True ' optional if you want Excel to be visible
Set WB = XLApp.Workbooks.Open("C:\Path\FileName.xls")
XLApp.Run "'" & WB.Name & "'!TheMacroName"
WB.Close savechanges:=True ' optional
Set WB = Nothing
XLApp.Quit 'optional
End Sub
In the FileName.xls workbook, use a procedure like the following to
show the form.
Sub TheMacroName()
userform1.Show
End Sub
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)