Results 1 to 2 of 2

Thread: NewItemAlert Modification for outlook path link

  1. #1
    beowulfs Guest

    NewItemAlert Modification for outlook path link

    I've got the NewItemAlert working, but i don't like having to click a
    web browser link and then insert my uysername and password. i'd rather
    have it put in an outlook style link, outlook:\\public folders\All
    Public Folders\Newsgroups. that way, you click on it and it brings up a
    new outlook window in that folder. I'd also like the subject line to
    list not only the subject of the newly posted message but the folder it
    was posted to as well (i'm using it on 5 different folders). i've been
    running through the script and msdn all day, and i'm burned out. i
    just don't know enough vb and cdo to figure it out. could someone
    help? thanks.

  2. #2
    beowulfs Guest
    solved it myself:

    added this:

    Dim strOutlookable ' As String added by Troy
    Dim strOutlookableL ' As String added by Troy
    Dim strOutlookableR ' As String added by Troy
    Dim strOutlookableT ' As String added by Troy
    Dim intOutlookcount ' As Integer added by Troy
    Dim intOutlookcountR ' As Integer added by Troy

    ' Covert ExOLEDB item URL into an Outlook usable url
    intOutlookcount = Len(bstrURLItem)
    strOutlookableR = Right(bstrURLItem, intOutlookcount-39)
    strOutlookableL = Left(strOutlookableR, 14)
    strOutlookableR = Right(strOutlookableR, Len(strOutlookableR)-15)
    intOutlookcountR = InstrRev(strOutlookableR, "/", -1, 1)
    strOutlookableR = Left(strOutlookableR, intOutlookcountR-1)
    strOutlookable = "outlook://" & strOutlookableL & "/All Public
    Folders/" & strOutlookableR
    strOutlookableT = Replace(strOutlookable, "/", "\")
    strOutlookable = Replace(strOutlookable, " ", "%20")

    strHTMLBody = strHTMLBody & "
    Click here to see NEW the item
    submitted to <a href =" & strOutlookable & ">" & strOutlookableT &
    "</a>.


    "

    beowulfs wrote:
    I've got the NewItemAlert working, but i don't like having to click a
    web browser link and then insert my uysername and password. i'd
    rather
    have it put in an outlook style link, outlook:\\public folders\All
    Public Folders\Newsgroups. that way, you click on it and it brings up
    a
    new outlook window in that folder. I'd also like the subject line to
    list not only the subject of the newly posted message but the folder
    it
    was posted to as well (i'm using it on 5 different folders). i've
    been
    running through the script and msdn all day, and i'm burned out. i
    just don't know enough vb and cdo to figure it out. could someone
    help? thanks.

Similar Threads

  1. Problem Link Outlook / Exchange
    By Mikaël PLOUHINEC in forum Administration
    Replies: 0
    Last Post: 06-13-2005, 12:03 PM
  2. Outlook freezes when opening mail by using WAN LINK
    By Oswaldo. in forum Connectivity
    Replies: 1
    Last Post: 05-17-2005, 03:26 PM
  3. Replies: 0
    Last Post: 04-18-2005, 05:52 PM
  4. Break Outlook email link with Exchange
    By Mark Bailey in forum Administration
    Replies: 7
    Last Post: 04-14-2005, 08:50 PM
  5. Replies: 0
    Last Post: 01-25-2005, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - CAD Forum