Results 1 to 3 of 3

Thread: Action to Append text to Subject in Task? *RESOLVED

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003
    Location
    Dorothy & Toto-ville
    Posts
    3

    Action to Append text to Subject in Task? *RESOLVED

    I'm looking for a bit of assistance on how to append more text to an existing Subject in an Outlook2000 task. I've successfully written the code to copy an existing open Task, and I can change the Subject, but I want to append the work "copy" to it, not replace it.

    Code:
    Private Sub copyTask_Click()
    Private Sub copyTask_Click()
    Dim myolApp As Outlook.Application
    Dim myItem As Outlook.TaskItem

    Set myolApp = CreateObject("Outlook.Application")
    Set myItem = myolApp.ActiveInspector.CurrentItem
    Set myCopiedItem = myItem.Copy

    With myCopiedItem
    .Subject = (" copy")
    .Save
    End With

    Set olookTask = Nothing
    Set olookApp = Nothing

    End Sub


    What do I need to add to my ".Subject = ("copy") line????
    Last edited by kdrungilas; May 14th, 2003 at 10:18 AM.
    kathy drungilas
    http://www.outsourcecorp.com

  2. #2
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Just a guess, I haven't tried it.

    Code:
    .Subject = .Subject & "(copy)"
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2003
    Location
    Dorothy & Toto-ville
    Posts
    3

    Thumbs up

    Wow! That was a FAST answer!

    You're right--that worked! Thanks a Bunch!
    kathy drungilas
    http://www.outsourcecorp.com

Posting Permissions

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



Click Here to Expand Forum to Full Width