PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
MsOf365 [Outlook] Is there a place in the outlook ui that is easily writable and visible?-VBForums
Results 1 to 8 of 8

Thread: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2018
    Posts
    174

    [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    I have some information I want to display from specific recipients. I can get the info based on the sender data on the mail item but have not found a place to put my extra stuff.

    I was modifying the Subject line (and removing before replying) but it confused some of the people trying to use it and want to find a new location to write the data.

    I Only need about 10-12 characters and it would ideally be somewhere on the mail item but would also be acceptable in the status bar or title bar (tried writing to the title bar using WM_SETTEXT with no luck). I'm also trying to avoid custom forms so I don't have to update eveyone's form every time a new version changes or the get a new computer\reinstall outlook.

  2. #2
    PowerPoster
    Join Date
    Oct 2008
    Location
    Midwest Region, United States
    Posts
    3,551

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    Are you trying to automatically create a reply, based on (and at the time of) receiving emails from these specific recipients, with the added text somewhere in the reply? Or are you wanting to search through the inbox to find emails from these recipients, then create a reply with the added text?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2018
    Posts
    174

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    Quote Originally Posted by vbfbryce View Post
    Are you trying to automatically create a reply, based on (and at the time of) receiving emails from these specific recipients, with the added text somewhere in the reply? Or are you wanting to search through the inbox to find emails from these recipients, then create a reply with the added text?
    I have a list of all my customers and the version of my software they are using. I want to display this version number. I can match up the email to my list and get the version number, I just don't have anywhere I can display it.

  4. #4
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,577

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    Need more information on how you are using it for your needs. You get an email from a customer and query teh db for their software version etc but what do you do with that info? Do you email it back or ???
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Corsair H100i v2 water cooler, Geforce GTX1060, Samsung M.2 500 GB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2010, VS 2010

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2018
    Posts
    174

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    Quote Originally Posted by RobDog888 View Post
    what do you do with that info? Do you email it back or ???
    I just want to show it somewhere on the screen so I don't have to keep looking it up.

    For example, if someone emails with a problem and they have an old version, I'll likely just tell them to update.

    So my process now is: 1) get an email 2) figure out the company 3) switch to the database 4) find the company in the list 5) get the version number.

    It is something I may have to do 10-20 times a day and I was hoping I could write to the status bar or title bar so I don't have to keep looking up the version numbers. I have all the other parts working, I just need a place to display the version number.

  6. #6
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,577

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    Maybe just a topmost tool window then as it doesnt have to be integrated into Office 365, I assume you are using as per the thread tag.
    You can use any language to write the tool window but if you have Access then you can use that as well
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Corsair H100i v2 water cooler, Geforce GTX1060, Samsung M.2 500 GB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2010, VS 2010

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    23,929

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    possibly you could use a baloon?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Mar 2018
    Posts
    174

    Re: [Outlook] Is there a place in the outlook ui that is easily writable and visible?

    Quote Originally Posted by westconn1 View Post
    possibly you could use a baloon?
    i wanted it to be "contained" to outlook but this would be a good place

    I did end up finding a solution: the "to-do bar" section seems to be on for most people here and the bar contains the "tasks" section. So I just create or reuse a task and put the text in there.

    Thanks for all the suggestions. The code I use is:

    VB Code:
    1. Option Explicit
    2.  
    3. Public WithEvents m As Outlook.MailItem
    4.  
    5. Private Sub Application_ItemLoad(ByVal Item As Object)
    6.     If TypeOf Item Is MailItem Then
    7.         Set m = Item
    8.     End If
    9. End Sub
    10. Private Sub m_Read()
    11.    
    12.     Dim TaskFolder As Outlook.Folder
    13.     Dim o As TaskItem
    14.     Dim tsk As TaskItem
    15.    
    16.     Set TaskFolder = Session.GetDefaultFolder(olFolderTasks)
    17.    
    18.     For Each o In TaskFolder.Items
    19.         If InStr(1, o.Subject, "v:") > 0 Then
    20.             Set tsk = o
    21.             Exit For
    22.         End If
    23.     Next
    24.        
    25.     If tsk Is Nothing Then
    26.         Set tsk = TaskFolder.Items.Add
    27.     End If
    28.            
    29.     tsk.Subject = "v: " & GetVersionInfo(m.SenderEmailAddress)
    30.     tsk.Save
    31.            
    32. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width