How do you put a variable in a shell command line?
Posted on 2007-11-28
Shell("C:\Program Files\Microsoft Office\Office11\Outlook.exe /c ipm.note /m mailto:firstname.lastname@example.org&subject=Retrofits%21&body=txtRetrofitPartNumber.text")
I have the above command line in a Visual Basic Button_Click event. When I click the button a pre-addressed, pre-formatted new e-mail message pops up. To: email@example.com, Subject: Retrofits. This is what I want so far. In the body I have the literal txtRetrofitPartNumber.text. n my program that is a variable. It is a textbox that the text will change from time to time. I want my e-mail to have the text that was typed into txtretrofitPartNumber.text not the literal "txtRetrofitPartNumber.text" Any ideas how to do that?