VBA can't open Excel, so you'll have to use the scheduler in Windows or something to take care of that. Even then, I'm not sure how to get it to to open a specific file, maybe you enter file name as a file argument? If you create a new scheduled take and then open the properties, manually tell it run the Excelt in Program files directly, but I'm not sure how to get to to accept a file here. What version of Windows & Excel are you using?
Main Topics
Browse All Topics





by: sirplusPosted on 2009-09-16 at 09:42:55ID: 25347538
Use the scheduler
Add the code to the auto workbook_open event
Code can actually send the email then save & close the workbook
You also need to overcome Outlook security
I have done it before
Which bits do you want help with?
Its all pretty basic only its a lot there for 1 question