Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Get email prefix char from VBA (2002)

    Clicking Tools | Options | Preferences | Email options, i can set the "Prefix each line wth" character.

    Is there a way to get this via VBA code?

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Get email prefix char from VBA (2002)

    Hi Peter,
    As far as I know you can't retrieve this directly from the Outlook Object Model (there still aren't any Dialog objects to work with). You can get it, but it's a little convoluted! If the Actions("Reply").ReplyStyle = olReplyTickOriginalText (value 1000), then you can look in the registry under HKCUSoftwareMicrosoftOffice10.0OutlookPreferences - if there's a key called PrefixText then you want the value of that. If the key does not exist, then it's the default prefix - i.e. > .
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Get email prefix char from VBA (2002)

    Great! Thanks Rory, for the idea of looking in the directory (and in this case, the place to look)!

Posting Permissions

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