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.
Thread starter Similar threads 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 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 5
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 New Slipstick.com Articles 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
A Dialogue box 'Do you want to save this file?' Save or Cancel From: C:\Users\Ad Using Outlook 5
S OL 2007 user typing. into file box results in .htm.msg Using Outlook 5
K Need to get OOO messages more than once for the same email box Using Outlook 2
O Search Address Books Box Using Outlook 1
O Sent mail from ( Yahoo ) appear on hotmail sent box Using Outlook 2
I Notification/Popup Box not showing on right side Using Outlook 1
Similar threads


















































Top