J
James T.
Using Access 2000
I use the following code with Word a lot:
Private Sub Command10_Click()
' start Microsoft Word.
Set wordApp = CreateObject("Word.Application")
With wordApp
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open
("C:\DataLetters\NoticeToProceed.doc")
I have tried the same thing recently with Excel with:
Private Sub Command10_Click()
' start Microsoft Excel.
Set excelApp = CreateObject("Excel.Application")
With excelApp
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open
("C:\DataLetters\SpreadsheetTest.xls")
Excel opens, but not the spreadsheet.
Any help greatly appreciated.
Thanks,
James
I use the following code with Word a lot:
Private Sub Command10_Click()
' start Microsoft Word.
Set wordApp = CreateObject("Word.Application")
With wordApp
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open
("C:\DataLetters\NoticeToProceed.doc")
I have tried the same thing recently with Excel with:
Private Sub Command10_Click()
' start Microsoft Excel.
Set excelApp = CreateObject("Excel.Application")
With excelApp
' Make the application visible.
.Visible = True
' Open the document.
.Documents.Open
("C:\DataLetters\SpreadsheetTest.xls")
Excel opens, but not the spreadsheet.
Any help greatly appreciated.
Thanks,
James