Email Macro Code Anotation

willlobb

Board Regular
Joined
Mar 29, 2002
Messages
103
HELP!!!!
i have to hand a proect in in an hour and i need to know if anyone can anotate the following code for me or convert it into english that i can understand!

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 WillWages()
Dim Email As String, Subj As String
Dim Msg As String, URL As String, x As Double

Email = "lobbwill@hotmail.com"

Subj = "Wage Details"

Msg = ""
Msg = Msg & "Dear Will, " & vbCrLf & vbCrLf
Msg = Msg & "Please check that the hours worked in and out of school shown below, are correct and that the total is also correct "
Msg = Msg & Range("C7").Text & "" & Range("C7").Text & "" & vbCrLf & vbCrLf & Range("F11").Text & " - " & Range("F13").Text & "" & vbCrLf & vbCrLf & Range("G11").Text & " - " & Range("G13").Text & "" & vbCrLf & vbCrLf & Range("H11").Text & " - " & Range("H13").Text & "" & vbCrLf & vbCrLf
Msg = Msg & "Thank You " & vbCrLf
Msg = Msg & "Klik. "

Subj = Application.WorksheetFunction.Substitute(Subj, " ", "%20")
Msg = Application.WorksheetFunction.Substitute(Msg, " ", "%20")

Msg = Application.WorksheetFunction.Substitute(Msg, vbCrLf, "%0D%0A")
URL = "mailto:" & Email & "?subject=" & Subj & "&body=" & Msg

ShellExecute 0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus

Application.Wait (Now + TimeValue("0:00:02"))
Application.SendKeys "%s"
End Sub

Thank you soooooo much
Will
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top