Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Archive: Business Applications
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard mouse network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications > Archive: Business Applications >
Solved: Sending an email from excel which quotes cell values

Reply  
Thread Tools
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
24-Sep-2008, 10:41 AM #1
Solved: Sending an email from excel which quotes cell values
Hello,

I was wondering whether you could help me.

I work in a particularly IT illiterate environment which means I have to create easy ways of doing things for people.

The request I have is as follows:

I have data in Cells A1 to E1 and in cell F1 I want to put a hyperlink that is clickable when someone wants to inform me of the data in cells A1 to E1 they click F1 it loads up a new email in our Lotus Notes Email system and sends the details of the data in cells A1 to E1.

I have managed to create a hyperlink and using mailto:email@etc... I have managed to get a new email in lotus to appear.

Is it possible to press the hyperlink, load up the new mail session and for excel to automatically copy and paste the data in cells A1 to E1 into the email?

Thanks,

Sean
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
24-Sep-2008, 11:37 AM #2
The script in the attached works with various mail clients.

Click the "@" button to see if it works with Lotus Notes.
Attached Files
File Type: xls basic mail.xls (20.5 KB, 2007 views)
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
24-Sep-2008, 01:25 PM #3
Dude, thats amazing.

Can you explain how you did it so I can learn to do it myself?
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
24-Sep-2008, 01:31 PM #4
Ive right clicked and gone into assign macro then edit send email, I can see how youve done it. I am right in thinking that If I want to reference the 2nd row I use (2,1) instead of (1,1)?

And can I output the cell information into a table going horizontally?

Last edited by rafterman79; 24-Sep-2008 at 01:53 PM..
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
24-Sep-2008, 06:34 PM #5
"Can you explain how you did it ... ?"

I didn't do anything, other than crib some code from John W.

"I am right in thinking that If I want to reference the 2nd row I use (2,1) instead of (1,1)?"



"And can I output the cell information into a table going horizontally?"

If you mean you want the range to appear in the email body as a kind of formatted object, then ... maybe.

See Ron's Sending mail from Excel with CDO page. Near the top is:

3: You can send a range/sheet in the body of the mail (some mail programs can’t do this)

Further down there's:

Body examples: Module body1 = Selection/Range or whole worksheet


So you could give that a look-see.

HTH
__________________
"Love All The People."
Bill Hicks, 1961 - 1994 -- R.I.P.
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
25-Sep-2008, 04:12 AM #6
Right, I have solved a few issues, I have got the data to output horizontally using space( ) and I have inserted a comma to make pasting it back into excel easier (Text to columns).

Now I want to be able to replicate that button down the spreadsheet, is there an easy way of doing it and automatically changing the cell references?

So currently I have the button on Row 3 referencing row 3, if I wanted buttons from row 3 to row 100 and for the button on row 100 to reference row 100 how would I do that?
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
25-Sep-2008, 04:46 AM #7
Ron's method didn't work w/Lotus?

1 button per 100 rows = no need.

Keep the (single) button on row 1 and freeze row 1 so it's always visible. Then use:

ThisRow = ActiveCell.Row
Msg = ""
Msg = Msg & Cells(ThisRow, 1) & "," & Cells(ThisRow, 2) & "," & Cells(ThisRow, 3) & "," & _
Cells(ThisRow, 4) & "," & Cells(ThisRow, 5) & vbCrLf
__________________
"Love All The People."
Bill Hicks, 1961 - 1994 -- R.I.P.
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
25-Sep-2008, 05:03 AM #8
It does work with lotus, an absolute treat, I look like a proper excel nerd now!

Will try that bit of code, and let you know.
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
25-Sep-2008, 06:10 AM #9
Worked a treat, as long as the cursor is on the row that im interested in the correct data is returned.

Thank you again.
bomb #21's Avatar
Distinguished Member with 8,082 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
25-Sep-2008, 06:15 AM #10
YW. Use Thread Tools at the top of the page to mark Solved if you wish.
rafterman79's Avatar
Junior Member with 12 posts.
 
Join Date: Sep 2008
25-Sep-2008, 06:23 AM #11
Done,

Thanks again.

Sean.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:16 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.