![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
HELP! I am trying to copy specified cells from an Office 97 spreadsheet with SR2 installed into a Netscape 6.2 e-mail. It does not copy! I have to copy it into a word document then from the word document into the e-mail. I really need help on this as I am spending WAY too much time trying to figure this out and search for an answer
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try the following:
Private Declare Function ShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Sub SendMail() Dim URL As String, Email As String Email = "youremail@email.com" URL = "mailto:" & Email & "?subject=" & "Insert Subject" & "&body=" & "Insert Buffers" ShellExecute 0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus Application.Wait (Now + TimeValue("0:00:01")) Application.SendKeys "%s" End Sub You can insert anything you want into the subject and body of the message (variables, cell values).
__________________
Kind regards, Al Chara |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Hi Al,
I am just trying to copy cells into the body of text and it is coming up blank! Not sure if it is a netscape, XP or excel problem. I used to be able to do it all the time and now I have to copy into a word doc then into the e-mail. |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Oh, I misunderstood your problem. You can use my script to do it automatically
I don't use netscape or XP, so I'm not a lot of help. [ This Message was edited by: Al Chara on 2002-04-04 08:42 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|