B
Bobsa
I'm using the following code to try and send a file as an attachment
from an Excel 2002 VBA macro. but I cannot get this to work in any
way.. any ideas
Dim xlapp As Object
Set xlapp = CreateObject("Excel.Application")
With xlapp
.Visible = True
.Workbooks.Open ("test.xls")
.Workbooks("test.xls").SendMail
Recipients:="(e-mail address removed)", Subject:="files for the day"
End With
I have to fire up and instance of excel, I've tried with and without
opening it but just get Subscript out of range... and I've tried lots
of different way..
I'll use anyhting to send it ... tried .sendmail butthis throws up a
different but equally infuriating set of errors....
help
Rob
from an Excel 2002 VBA macro. but I cannot get this to work in any
way.. any ideas
Dim xlapp As Object
Set xlapp = CreateObject("Excel.Application")
With xlapp
.Visible = True
.Workbooks.Open ("test.xls")
.Workbooks("test.xls").SendMail
Recipients:="(e-mail address removed)", Subject:="files for the day"
End With
I have to fire up and instance of excel, I've tried with and without
opening it but just get Subscript out of range... and I've tried lots
of different way..
I'll use anyhting to send it ... tried .sendmail butthis throws up a
different but equally infuriating set of errors....
help
Rob