From box in custom outlook Form

Status
Not open for further replies.

Atomhax

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
I've been tasked with removing the send button from the default outlook form. I think it's called IPM.note. I ended up having to create a custom form and use some vbscript to get it have some semblance of normal functionality. We have a custom send button that ties into the item_send event in a non-transparent way so I'm unable to rely on that as a solution.

The first issue was when hitting reply the Body field doesn't automatically have input focus. I found a solution in vbscript which i'm going to share below because it took hours to figure out in and I couldn't find a solution on google. May it save future posters some time.

Sub Item_Open()
strSubject=Item.Subject
strPos = instr(strSubject,":")
strParse=left(strSubject, strPos)
if inStr(strParse,"RE:")then
Set objPage = Item.GetInspector.ModifiedFormPages("Message")
Set txtField = objPage.Controls("Message")
txtField.SetFocus()
EndIf

EndSub

As for my question i've noticed once you create a custom form you no longer have the option of adding "FROM" and "BCC" Fields in the ribbon. I added a BCC field to my form but i'm having issues with the From field. I want that.. when the user hits reply or new message the from field populates with the default account or email address.

I've Tried:

Set objPage2 = Item.GetInspector.ModifiedFormPages("Message")
Set txtField2 = objPage2.Controls("From")
txtField2.Value="user@someplace.com"
but this apparently isn't a supported action. At this point i'm kinda dead in the water. I'm normally an app developer so i'm 90% sure i'm doing this the wrong way or using the wrong tech. Any guidance would be very appreciated
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
P Custom Outlook form_Validations in combo box Outlook VBA and Custom Forms 0
S Custom yes/no message box. Using Outlook 0
R Need code to gather value of custom field on addressentry.details dialog box Using Outlook 3
B Passing values from custom form into another form's text box Outlook VBA and Custom Forms 1
P turn off the default "all day" check box in new calendar items. How? Using Outlook 1
S New Email "From" box stopped working Using Outlook 0
T Outlook 365 Search Box reverting to old location Using Outlook 2
J How do you disable address search box when typing @ in body of email? Using Outlook 0
L Is there a way to completely disable the "archive" box? Using Outlook 1
M Reverting The Outlook Search Box Location (or other undesired additions) Using Outlook 1
P outlook 2008 search box criteria couldn't be saved Using Outlook 2
Terry Sullivan E-Mails Sent Using a Group Box Result in 70 Kickbacks Using Outlook 4
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
N Private check box in table view Using Outlook 0
Commodore Folders always closed in move/copy items dialog box Using Outlook 3
P IMAP Folders Dialog Box Using Outlook 1
J Program Checkbox that will activate a text box in a Outlook fallible form. Outlook VBA and Custom Forms 1
CWM030 Call me old if you want. OL 2016 font size out of the box. Using Outlook 3
P Suppress dialog box on email check error? Using Outlook 5
E Don't want Inbox shown when login box is shown Using Outlook 1
stephen li VBA Outlook send mail automatically by specified outlook mail box Outlook VBA and Custom Forms 1
G Using Data From Combo Box in Appointment Body Outlook VBA and Custom Forms 6
A GetSelectNamesDialog Pre-fill search box Outlook VBA and Custom Forms 12
P Outlook 2010 sending safe senders email to junk box Using Outlook 8
K Sharedmail box Outlook VBA and Custom Forms 4
Diane Poremsky Outlook Suggestion Box at Uservoice Using Outlook 0
D Emails do not appear in Sent box! Using Outlook 4
T OL2010 Password box keeps appearing. Using Outlook 6
Kristine RS box added in Favorites disappears Using Outlook 6
L An () has been inserted after the address in an address box; how do I remove them. Using Outlook 1
rohit I want to Populate Popup box while sending any email with attachment. Outlook VBA and Custom Forms 4
rohit I want to Populate Popup box while sending any email with attachment Using Outlook 1
moron save as & file location dialog box popup Outlook VBA and Custom Forms 2
Ross Garvey Dialogue box opens as I exit Using Outlook 2
P BCM 2013 Contacts Form Drop Down Box Bug BCM (Business Contact Manager) 1
C Outlook 2013 - Email Gets Sent - But Does Not Move From Outbox to Sent Box Using Outlook 4
G Enter Network Password box pops up every few seconds Using Outlook 2
S Outlook form - Combo box for deciding who to send form to Using Outlook 1
V In Box Issues Using Outlook 1
S 2010 outlook today looks like an empty email box Using Outlook 4
L Auto-set followup/reminder popup box for ALL sent emails. Using Outlook 0
P VBA for Dialog Box when sending Email Using Outlook 8
V Clicking box to delete junk mail doesn't stay Using Outlook 2
M Send receive Progress Box Using Outlook 4
M How do I link a drop down box to a percent complete box Using Outlook 4
B In Box Empty Using Outlook 5
M details with the combo box Exchange Server Administration 3
L Combo Box Using Outlook 157
M Preventing conversation from moving to the top of the message box? Using Outlook 7

Similar threads

Back
Top