I thought this was simple, and maybe I'm just forgetting something small.
I'm wanting to be able to open an Excel workbook from email, and then have Access reference the then opened workbook. How can I refer to that workbook?
So far, I tried:
And that doesn't work.
Then I tried:
Well, that didn't work either.
Any thoughts? Am I just totally overlooking the obvious somewhere? I can't refer to a specific workbook in this scenario, b/c it will just be the open workbook from an email... not saved to a particular location. If I have to go that route, then the whole process will be too far overkill for this one.
Thanks for any references/suggestions/examples,
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
I'm wanting to be able to open an Excel workbook from email, and then have Access reference the then opened workbook. How can I refer to that workbook?
So far, I tried:
Code:
Sub TestWb
Dim xlApp As New Excel.Application
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet
Set wb = xlApp.ActiveWorkbook
Set ws = wb.ActiveSheet
'....
End Sub
And that doesn't work.
Then I tried:
Code:
'...
Set wb = Excel.ActiveWorkbook
'...
Well, that didn't work either.
Any thoughts? Am I just totally overlooking the obvious somewhere? I can't refer to a specific workbook in this scenario, b/c it will just be the open workbook from an email... not saved to a particular location. If I have to go that route, then the whole process will be too far overkill for this one.
Thanks for any references/suggestions/examples,
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57