I am working on email an excel report out. I need to format the report before it is sent. I have created a macro in my personal workbook. I would like access to be able to open the report use the macro form the personal book and then save it. SO far I am stumped. Here is what I have so far:
Dim appXL As Excel.Application
Dim wbk As Excel.Workbook
Set appXL = New Excel.Application
Set wbk = appXL.Workbooks.Open("s:\hris\badge report\Daily Badge Number Check.xls")
appXL.Run wbk.PERSONAL.XLS & "!BadgeNumber"
wbk.Close True
appXL.Quit
Any help would be appreciated.
Dim appXL As Excel.Application
Dim wbk As Excel.Workbook
Set appXL = New Excel.Application
Set wbk = appXL.Workbooks.Open("s:\hris\badge report\Daily Badge Number Check.xls")
appXL.Run wbk.PERSONAL.XLS & "!BadgeNumber"
wbk.Close True
appXL.Quit
Any help would be appreciated.