Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sending email from Excel with a twist

I was reading the threads regarding sending spreadsheets, etc. from
Excel when you make changes and think I have a handle on it (more like
a very loose grip!), but what I am trying to figure out is if it's
possible to send a link to the file, instead. The file is on a server,
and the only recipients would be people on the same server, so there
won't be a problem with them accessing it. Is there a way to do this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Sending email from Excel with a twist

i do it in outlook express, here's part of the code. the recipients are stored
in an array, the msg is a path to the file and msg2 comes from a textbox the
user fills out:

' populate the email addresses
msg = "\\mi01admin\private$\vacation\"
Recipient = arr(1, 1)
For i = lastrow - 1 To 2 Step -1
Recipientcc = arr(i, 1) & ";" & Recipientcc
Next
Recipientbcc = ""

Subj = "Vacation calendar has been updated by " &
Application.Proper(Environ("UserName"))
HLink = "mailto:" & Recipient & "?" & "cc=" & Recipientcc & "&" & "bcc=" &
Recipientbcc & "&"
HLink = HLink & "subject=" & Subj & "&"
HLink = HLink & "body=" & Application.Proper(msg2) & " " & msg
ActiveWorkbook.FollowHyperlink (HLink)

--


Gary


"Scratch" wrote in message
oups.com...
I was reading the threads regarding sending spreadsheets, etc. from
Excel when you make changes and think I have a handle on it (more like
a very loose grip!), but what I am trying to figure out is if it's
possible to send a link to the file, instead. The file is on a server,
and the only recipients would be people on the same server, so there
won't be a problem with them accessing it. Is there a way to do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sending email from Excel with a twist

If you use Outlook code try this

..Body = "file://Yourcomputer/YourFolder/Week2.xls"

If there are spaces use %20
..Body = "file://Yourcomputer/YourFolder/Week%202.xls"



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Scratch" wrote in message oups.com...
I was reading the threads regarding sending spreadsheets, etc. from
Excel when you make changes and think I have a handle on it (more like
a very loose grip!), but what I am trying to figure out is if it's
possible to send a link to the file, instead. The file is on a server,
and the only recipients would be people on the same server, so there
won't be a problem with them accessing it. Is there a way to do this?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sending email from Excel with a twist

Thanks, Gary and Ron. I'll give that a go.


Cheers


Ron de Bruin wrote:
If you use Outlook code try this

.Body = "file://Yourcomputer/YourFolder/Week2.xls"

If there are spaces use %20
.Body = "file://Yourcomputer/YourFolder/Week%202.xls"



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Scratch" wrote in message oups.com...
I was reading the threads regarding sending spreadsheets, etc. from
Excel when you make changes and think I have a handle on it (more like
a very loose grip!), but what I am trying to figure out is if it's
possible to send a link to the file, instead. The file is on a server,
and the only recipients would be people on the same server, so there
won't be a problem with them accessing it. Is there a way to do this?


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
sending email from excel 97 tysop Excel Programming 1 January 26th 06 03:01 PM
Sending Email From Excel Help! lehainam[_19_] Excel Programming 3 September 6th 05 05:11 AM
sending email from Excel nuExcel[_4_] Excel Programming 1 June 7th 04 04:24 AM
Sending email from Excel Denise Posey Excel Programming 9 February 4th 04 09:29 AM
HELP sending email from Excel Memnoch Excel Programming 0 July 12th 03 02:18 PM


All times are GMT +1. The time now is 03:05 AM.

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

About Us

"It's about Microsoft Excel"