OL2000: (CW) Your Profile Address Is Displayed in the To Box When You Reply to a Message in a Team Mailbox (296805)



The information in this article applies to:

  • Microsoft Outlook 2000

This article was previously published under Q296805
NOTE: The procedures in this article only apply if you have installed Outlook with the Corporate or Workgroup option. With this option, you can use Messaging Application Programming Interface (MAPI) services. To determine your installation type, click About Microsoft Outlook on the Help menu. If you have the Corporate or Workgroup installation, you see "Corporate or Workgroup".

SYMPTOMS

You can create a shared team or group mailbox by creating a new mailbox, and then assigning access permissions to the team or group members. For additional information about how to create a team or group mailbox, click the article number below to view the article in the Microsoft Knowledge Base:

195781 How to Open Someone Else's Calendar or Other Folder

If you use the Open other user's folder option in Outlook 2000 to open this mailbox using another profile, and then reply to one of the messages, your profile's e-mail address is displayed in the From box, instead of the address of the team mailbox.

RESOLUTION

To resolve this issue, write a macro that presets the To box in reply messages, and then replace the Reply button on the Tools menu with a button that starts the macro.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please refer to the following Microsoft Web site: For more information about the support options available from Microsoft, please refer to the following Microsoft Web site: To create the macro:
  1. On the Tools menu, point to Macro, and then click Macros.
  2. In the Macro Name box, type a name for your macro, and then click Create.

    The Visual Basic Editor starts and automatically creates a subroutine for you.
  3. Type the following lines of code:
       Sub macroname()
    
       Dim myItem As MailItem
    
       Set myItem = ActiveExplorer.Selection.Item(1)
       Set myItem = myItem.Reply
    
       If ActiveExplorer.Caption = "XXXXX" Then
    
       myItem.SentOnBehalfOfName = "YYYYY"
       myItem.Recipients.ResolveAll
    
       End If
    
       myItem.Display
    
       Set myItem = Nothing
    
       End Sub
    						
    NOTE: Make sure to replace "XXXXX" with the information that is displayed in the title bar when you click the Inbox in the group or team mailbox, and replace "YYYYY" with the e-mail address that you want to use.
  4. On the File menu, click Close and return to Microsoft Outlook.
To test the macro:
  1. Click a message, and then press ALT+F8.
  2. Click the newly created macro, and then click Run.
To add a Reply button for the macro to the toolbar:
  1. On the View menu, point to Toolbars, and then click Customize.
  2. Click the Commands tab, and then click Macros in the Category box.
  3. Drag your macro to the toolbar.
To replace the old Reply button with the new one:
  1. On the View menu, point to Toolbars, and then click Customize.
  2. Click the standard Reply button on the toolbar.
  3. Click Modify selection on the Commands tab, and then click Copy Button Image.
  4. Click the Macro button on the toolbar.
  5. Click Modify selection on the Commands tab, and then click Paste Button Image.
  6. Remove the old Reply button by dragging it from the toolbar.
  7. Click the Macro button on the toolbar.
  8. Click Modify selection on the Commands tab, and then click Choose Name.
  9. Type Reply, and then press ENTER.
  10. Click Close.

MORE INFORMATION

If the macro works but does not preset the From box, you may have replaced "XXXXX" with the wrong display name. To verify this:
  1. Open the macro in the Visual Basic Editor, and then set a breakpoint at the macro's last command.
  2. Add the ActiveExplorer.Caption expression to the Watches box, and then reply to a message in your team mailbox.
The value that is displayed for ActiveExplorer.Caption when it reaches the breakpoint is the value that you have to replace "XXXXX" with.

Modification Type:MajorLast Reviewed:9/29/2003
Keywords:kbprb KB296805