G
Guest
I got my inputbox to work and am able to replace the **** with the word from
the inputbox.
Can I do this also for his emailaddress? we are all on the same domain so
everything that comes behind the @ is the same for everybody in our squads.
I tried using my recipient and createrecipient but I still don't know the
code properly.
And what is the proper code to add a recipient to a custom form?
Here is the code I'm using so far...
Sub test()
strMyInput = InputBox("recruitname?")
strMyInput2 = InputBox("Password?")
Set objFolder = Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add("IPM.Note.Bootcamp done to GR")
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "******", strMyInput)
objItem.Body = strBody
objItem.Display
Set objFolder = Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add("IPM.Note.Bootcamp done to CoC")
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "******", strMyInput)
objItem.Body = strBody
objItem.Display
Set objFolder = Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add("IPM.Note.Bootcamp done to Recruit")
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "******", strMyInput)
objItem.Body = strBody
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "§§§§§§", strMyInput2)
objItem.Body = strBody
objItem.Display
End Sub
Last thing, why is my nice html formatting gone when I open those forms with
the macro...?
the inputbox.
Can I do this also for his emailaddress? we are all on the same domain so
everything that comes behind the @ is the same for everybody in our squads.
I tried using my recipient and createrecipient but I still don't know the
code properly.
And what is the proper code to add a recipient to a custom form?
Here is the code I'm using so far...
Sub test()
strMyInput = InputBox("recruitname?")
strMyInput2 = InputBox("Password?")
Set objFolder = Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add("IPM.Note.Bootcamp done to GR")
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "******", strMyInput)
objItem.Body = strBody
objItem.Display
Set objFolder = Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add("IPM.Note.Bootcamp done to CoC")
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "******", strMyInput)
objItem.Body = strBody
objItem.Display
Set objFolder = Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add("IPM.Note.Bootcamp done to Recruit")
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "******", strMyInput)
objItem.Body = strBody
objItem.Display
strBody = objItem.Body
strBody = Replace(strBody, "§§§§§§", strMyInput2)
objItem.Body = strBody
objItem.Display
End Sub
Last thing, why is my nice html formatting gone when I open those forms with
the macro...?