LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default active row copy into Outlook

Hello all,
New user. I working on vb to copy the range A:F of the active row based on the if/then results. I am looking for a method for the copy/paste function to easily paste into an existing vb. What I have works great as written. I would like to replace the "WE HAVE A WINNER!" text in the email body with the aforementioned range.

Sub FollowUp()
Dim Cell As Range
For Each Cell In Sheet3.Range("L3:L" & Sheet3.Range("L" & Rows.Count).End(xlUp).Row)
If IsEmpty(Cell.Value) Then GoTo X:
If Cell.Value - Date <= -10 Then
Cell.Interior.ColorIndex = 45
If Cell.Interior.ColorIndex =45 Then
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String


Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)

strbody = "The quote approval period for the Repair asset" & vbNewLine & _
"listed below has expired:" & vbNewLine & vbNewLine & _
"WE HAVE A WINNER!" & vbNewLine & _
"Please contact the customer as soon as possible" & vbNewLine _

On Error Resume Next
With OutMail...



Thank you in advance for your help.
 
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
Copy active sheet to new - do no copy buttons Carlee Excel Programming 3 June 13th 07 04:33 PM
Copy from active sheet and paste into new sheet using info from cell in active Ingve Excel Programming 3 January 23rd 06 09:57 PM
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. ragman10 Excel Discussion (Misc queries) 1 December 13th 04 11:52 PM
moving 450 active e-mail addresses from Excel to Outlook Express ragman10 Excel Discussion (Misc queries) 1 December 2nd 04 03:25 PM
email shortcut to active workbook as an outlook attachment Neil Deinhardt Excel Programming 0 September 28th 04 08:14 PM


All times are GMT +1. The time now is 09:13 AM.

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"