Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Koolmist
 
Posts: n/a
Default Need a macro to Copy a selection and paste into a new email.

Hey all,
I am extremely new to Excel and have been "tinkering" with it for around
2 weeks now, and have come to the conclussion that i need to start learning
macros. I have recently been given a task of making a worksheet that gathers
data from multiple sheets and places that info into a single sheet once an
hour. Although the process I used was more than likely the least efficient it
still works fine. The data is recorded for each hour and via formulas
populates a "Reports" sheet. I need to learn how to make a macro that will
copy a selection on the "Reports" sheet, paste it into a new e-mail and sent
it from clicking on a single button. I figured out how to make a button from
reading the posts in this forum, but am at a loss as to how to make a macro
that will change sheets, select a range of cells,copy it, then open Outlook,
make a new email, paste it, send it, and then return to the original sheet,
but to cells below the ones previously filled in. Any and all assistance
would be greatly appreciated, as I am eager to see this sheet finally
finished.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Anne Troy
 
Posts: n/a
Default Need a macro to Copy a selection and paste into a new email.

Bookmark Ron's site for anything to do with Excel and emailing:
http://www.rondebruin.nl/sendmail.htm
:)
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Koolmist" wrote in message
...
Hey all,
I am extremely new to Excel and have been "tinkering" with it for
around
2 weeks now, and have come to the conclussion that i need to start
learning
macros. I have recently been given a task of making a worksheet that
gathers
data from multiple sheets and places that info into a single sheet once an
hour. Although the process I used was more than likely the least efficient
it
still works fine. The data is recorded for each hour and via formulas
populates a "Reports" sheet. I need to learn how to make a macro that will
copy a selection on the "Reports" sheet, paste it into a new e-mail and
sent
it from clicking on a single button. I figured out how to make a button
from
reading the posts in this forum, but am at a loss as to how to make a
macro
that will change sheets, select a range of cells,copy it, then open
Outlook,
make a new email, paste it, send it, and then return to the original
sheet,
but to cells below the ones previously filled in. Any and all assistance
would be greatly appreciated, as I am eager to see this sheet finally
finished.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Koolmist
 
Posts: n/a
Default Need a macro to Copy a selection and paste into a new email.

I checked out his site but since I have no idea how to read this code what so
ever its greek to me. I did how ever figure out some of the code and have
gotten the Button to copy the appropiate cells, open a new email and fill the
subject line. I have run into a problem though. I don't know how to get it to
paste. I know I must change the .Display to .Send when I get it to work, but
how do i get it to paste in the body of the email??

Sub Email6()
'
' Email6 Macro
' Macro recorded 2/19/2006 by clawson
'

'
Sheets("Report").Select
Range("A49:K96").Select
Selection.Copy

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = "
.CC = "Sick; GTW Managment"
.BCC = ""
.Subject = "6AM Heads-up Report"
.HTMLBody = RangetoHTML
.Display
End With

Sheets("Data Sheet").Select
Set OutMail = Nothing
Set OutApp = Nothing

End Sub

Again thanks for all of the help it's so close to being finished!!

"Anne Troy" wrote:

Bookmark Ron's site for anything to do with Excel and emailing:
http://www.rondebruin.nl/sendmail.htm
:)
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Koolmist" wrote in message
...
Hey all,
I am extremely new to Excel and have been "tinkering" with it for
around
2 weeks now, and have come to the conclussion that i need to start
learning
macros. I have recently been given a task of making a worksheet that
gathers
data from multiple sheets and places that info into a single sheet once an
hour. Although the process I used was more than likely the least efficient
it
still works fine. The data is recorded for each hour and via formulas
populates a "Reports" sheet. I need to learn how to make a macro that will
copy a selection on the "Reports" sheet, paste it into a new e-mail and
sent
it from clicking on a single button. I figured out how to make a button
from
reading the posts in this forum, but am at a loss as to how to make a
macro
that will change sheets, select a range of cells,copy it, then open
Outlook,
make a new email, paste it, send it, and then return to the original
sheet,
but to cells below the ones previously filled in. Any and all assistance
would be greatly appreciated, as I am eager to see this sheet finally
finished.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default Need a macro to Copy a selection and paste into a new email.

Hi Koolmist

Have you try this example
http://www.rondebruin.nl/mail/folder3/mail4.htm



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


"Koolmist" wrote in message ...
I checked out his site but since I have no idea how to read this code what so
ever its greek to me. I did how ever figure out some of the code and have
gotten the Button to copy the appropiate cells, open a new email and fill the
subject line. I have run into a problem though. I don't know how to get it to
paste. I know I must change the .Display to .Send when I get it to work, but
how do i get it to paste in the body of the email??

Sub Email6()
'
' Email6 Macro
' Macro recorded 2/19/2006 by clawson
'

'
Sheets("Report").Select
Range("A49:K96").Select
Selection.Copy

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = "
.CC = "Sick; GTW Managment"
.BCC = ""
.Subject = "6AM Heads-up Report"
.HTMLBody = RangetoHTML
.Display
End With

Sheets("Data Sheet").Select
Set OutMail = Nothing
Set OutApp = Nothing

End Sub

Again thanks for all of the help it's so close to being finished!!

"Anne Troy" wrote:

Bookmark Ron's site for anything to do with Excel and emailing:
http://www.rondebruin.nl/sendmail.htm
:)
************
Hope it helps!
Anne Troy
www.OfficeArticles.com
Check out the NEWsgroup stats!
Check out: www.ExcelUserConference.com

"Koolmist" wrote in message
...
Hey all,
I am extremely new to Excel and have been "tinkering" with it for
around
2 weeks now, and have come to the conclussion that i need to start
learning
macros. I have recently been given a task of making a worksheet that
gathers
data from multiple sheets and places that info into a single sheet once an
hour. Although the process I used was more than likely the least efficient
it
still works fine. The data is recorded for each hour and via formulas
populates a "Reports" sheet. I need to learn how to make a macro that will
copy a selection on the "Reports" sheet, paste it into a new e-mail and
sent
it from clicking on a single button. I figured out how to make a button
from
reading the posts in this forum, but am at a loss as to how to make a
macro
that will change sheets, select a range of cells,copy it, then open
Outlook,
make a new email, paste it, send it, and then return to the original
sheet,
but to cells below the ones previously filled in. Any and all assistance
would be greatly appreciated, as I am eager to see this sheet finally
finished.






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
need custom cut and paste functions ben New Users to Excel 0 January 6th 06 04:23 AM
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Merge across - copy and paste Carole O Excel Discussion (Misc queries) 3 October 26th 05 09:15 PM
In Excel: Paste Special should have a "Link Value" Selection Deon Isis Excel Worksheet Functions 0 June 30th 05 02:12 PM
Copy & paste in multiple areas using VBA Rob Excel Discussion (Misc queries) 12 April 11th 05 02:09 PM


All times are GMT +1. The time now is 04:55 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"