I currently have a macro in Outlook that opens up the selected e-mail's attachment (CSV file) in Excel.... (works great!)
Is it possible to run an excel macro (already saved in the global XLA for excel) that then performs some additional work once this CSV has been opened by outlook?
I currently use one of two methods to open Excel files from outlook
Method 1:
Method 2:
Thoughts?
Is it possible to run an excel macro (already saved in the global XLA for excel) that then performs some additional work once this CSV has been opened by outlook?
I currently use one of two methods to open Excel files from outlook
Method 1:
Code:
Shell "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE " & FileName
Code:
'open up excel
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
xlApp.Visible = True
'open the attachment
Dim xlWorkbook As Excel.Workbook
Set xlWorkbook = xlApp.Workbooks.Open(FileName:=FileName, UpdateLinks:=False, ReadOnly:=False)