private void button2_Click(object sender, EventArgs e)
{
mailadr = textBox3.Text;
String MM;
MM = “Mailto:” + mailadr + “?subject= headlinetext& body=bodytext”;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = MM;
proc.Start();
}
VBA – Excel How to Delete spaces
Sometimes you need to delete spaces in more than you care to do manually. The first choice is the function “Trim”, however it has its limitations by only removing leading and following spaces. This function removes all spaces – up to 3 spaces. You are welcome to add more by changing the code. (No rights – and no warrenty)
Function Removespaces(fullString As String) As String
Dim RS As String
RS = Trim(fullString)
RS = Replace(RS, ” “, “”)
RS = Replace(RS, ” “, ” “)
RS = Replace(RS, ” “, ” “)
Removespaces = RS
End Function