#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Edit Excel file

I have a macro in Excel that allows me to send an email from the spreadsheet
to another person in email as an attachment using Lotus Notes. When the
receiver opens the attachment, they receive the following error message:
"File could not be found, verify that the file location is correct". The
code below that I used is came from Ron de Bruin's site:

Sub EmailThisForm()

Dim strDate As String
ActiveSheet.Copy
strDate = Format(Date, "dd-mm-yy") & " " & Format(Time, "h-mm-ss")
ActiveWorkbook.SaveAs " " & ThisWorkbook.Name _

ActiveWorkbook.SendMail " ", _
"Reward Request Approval Required"
ActiveWorkbook.ChangeFileAccess xl
Kill ActiveWorkbook.FullName
ActiveWorkbook.Close False
End Sub

I would like to be able to have the receiver open the spreadsheet, then
click on the macro that they have been instructed to use and then use the
macro above to email the spreadsheet to the next person without saving the
spreadsheet to their hard drive. Any help that could be provided would be
greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Edit Excel file

Hi pdaws

I not have Notes but what happens if you mail to yourself and try to open the workbook

Try the new SendMail code examples on my site maybe this is working better with Notes.
I never test it

Btw it is xlReadOnly
and not xl


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm



"pdaws" wrote in message ...
I have a macro in Excel that allows me to send an email from the spreadsheet
to another person in email as an attachment using Lotus Notes. When the
receiver opens the attachment, they receive the following error message:
"File could not be found, verify that the file location is correct". The
code below that I used is came from Ron de Bruin's site:

Sub EmailThisForm()

Dim strDate As String
ActiveSheet.Copy
strDate = Format(Date, "dd-mm-yy") & " " & Format(Time, "h-mm-ss")
ActiveWorkbook.SaveAs " " & ThisWorkbook.Name _

ActiveWorkbook.SendMail " ", _
"Reward Request Approval Required"
ActiveWorkbook.ChangeFileAccess xl
Kill ActiveWorkbook.FullName
ActiveWorkbook.Close False
End Sub

I would like to be able to have the receiver open the spreadsheet, then
click on the macro that they have been instructed to use and then use the
macro above to email the spreadsheet to the next person without saving the
spreadsheet to their hard drive. Any help that could be provided would be
greatly appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My top tabs (file,edit, etc) are missing in Excel. Help Rita Ziegler Excel Discussion (Misc queries) 2 March 3rd 10 08:56 AM
Excel Menu (File, Edit, View, etc) William G Miller Excel Discussion (Misc queries) 1 December 7th 09 06:22 PM
How does more that one person edit an excel file on s drive LOU Excel Discussion (Misc queries) 4 January 30th 07 01:20 PM
I have opened an Excel file and I can't edit any cell Elise0 New Users to Excel 2 March 1st 05 08:51 AM
Multiple excel users can open the same file and edit at the same . Jeff Howard Excel Discussion (Misc queries) 1 February 18th 05 12:19 PM


All times are GMT +1. The time now is 06:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"