LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Why did this code stop working ?

Sub Outlook_Express()
ActiveSheet.Select
With ActiveWorksheet
Range("B6").Select
ActiveCell.Value = ActiveWorkbook.Worksheets.Count - 1
Range("A1:I46").Select
Dim msg As String, cell As Range
Dim Recipient As String, Subj As String, HLink As String
Dim Recipientcc As String, Recipientbcc As String
Recipient = "
Recipientcc = ActiveSheet.Range("E39")
Recipientbcc = "
Subj = ActiveSheet.Range("A47")
msg = "Dear customer" & vbNewLine & vbNewLine
For Each cell In ActiveSheet.Range("A1:I46")
msg = msg & vbNewLine & cell
Next cell
msg = WorksheetFunction.Substitute(msg, vbNewLine, "%0D%0A")
msg = WorksheetFunction.Substitute(msg, vbLf, "%0D%0A")
HLink = "mailto:" & Recipient & "?" & "cc=" & Recipientcc & "&" & "bcc=" & Recipientbcc & "&"
HLink = HLink & "subject=" & Subj & "&"
HLink = HLink & "body=" & msg
Application.SendKeys "%s"
End With

End Sub

Suddenly stopped sending the selected range ???
 
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
Formulae stop working rdevlin57 Excel Worksheet Functions 7 July 24th 08 10:19 PM
Why can cause undo and redo to stop working? GDB026 Excel Discussion (Misc queries) 2 December 18th 07 06:25 PM
Excel Formulas stop working kvonwald Excel Discussion (Misc queries) 3 October 29th 07 01:18 AM
hyper links stop working Peter Excel Worksheet Functions 0 October 13th 06 05:27 PM
My Excel stop working can any one help? cherokee Setting up and Configuration of Excel 1 July 28th 06 01:16 AM


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