View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.programming
Mark Scott[_4_] Mark Scott[_4_] is offline
external usenet poster
 
Posts: 6
Default Programatically sending a sheet through Outlook

Thanks, that sorted the saving the sheet but I now get a subscript out of
range at:

Set wb2 = Workbooks.Open(wbname)
With wb2
..SendMail Sheets("mysheet").Range("j1").Value, _
"This is the Subject line"

J1 is a formula which uses concatenate to produce the required email address

Regards

Mark

"Tony Steane" wrote in message
om...
Try changing the wbname = "C=:/" & etc....

to

wbname = "C:\" & etc

ie No = (equals sign) and us the backslash.

Cheers

Tony