Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. StrSenderID = oPA.GetProperty(PR_SENT_REPRESENTING_ENTRYID) For an in-depth description of these options, see Print items in Outlook. Note: If you're using Outlook 2010 with a network printer, the Print window may appear behind other application windows. Set oPA = myOlSel.Item(x).PropertyAccessor Print selected pages In the open message, select File > Print > Print Options. ' then get the address entry to display the sender name. ![]() ' For other items, use the property accessor to get sender ID, ' For appointment item, use the Organizer property. ' For mail item, use the SenderName property.ĮlseIf myOlSel.Item(x).Class = OlObjectClass.olAppointment Then If myOlSel.Item(x).Class = OlObjectClass.olMail Then Sub GetSelectedItems()Ĭonst PR_SENT_REPRESENTING_ENTRYID As String = _ It uses the Count property and Item method of the Selection object, returned by the Explorer.Selection property, to display the senders of all messages that are selected in the active explorer. ![]() The following Microsoft Visual Basic for Applications (VBA) example displays the sender of each selected item in the active explorer. The Selection collection contains ConversationHeader objects only if you specify olConversationHeaders in the GetSelection method of the Selection object. For example, the Item method can return an AppointmentItem, MailItem, MeetingItem, or TaskItem in the Inbox folder, depending on the value of the Selection.Location property. Remarksĭo not make any assumptions about the Item method return type your code should be able to handle multiple item types or a ConversationHeader object. Parameters NameĮither the index number of the object, or a value used to match the default property of an object in the collection.Īn Object that represents the specified item or conversation header. You can then make your selection and choose the Print command from the Gear icon in the top-right corner or press CTRL+P. SyntaxĮxpression A variable that represents a ' Selection' object. To select the Web browser's print function as your quick print applicationįrom the Print Individual Lists Using drop-down list, choose HTML.Returns a Microsoft Outlook item or conversation header from the selection. You can select the Web browser's print function as your quick print application. ![]() To select Microsoft Excel as your quick print applicationįrom the application-level menu, choose Tools, then User Preferences.įrom the Print Individual Lists Using drop-down list, choose Microsoft Excel. ![]() You can select Microsoft Excel as your quick print application. A new window will open, allowing you to select the printer you want to use and adjust the print settings. Then, right-click on the picture and select the Print option from the drop-down menu. If you want to print an entire view.Ĭhoose from the following options to determine how you want rows to print:Ĭhoose from the following options to determine how you want columns to print: In order to print a picture from an Outlook email, first open the email that contains the picture. Excel, PowerPoint, Outlook, OneNote and OneDrive combining the familiarity of Office. Prints only the selected list or form.ĭetermines how on screen data prints when you use the menu button (Menu, then Print). Utilize our custom online printing and IT services for small. Prints each list or form sequentially, left to right and top to bottom. If you use Microsoft Excel only the list will be printed.) Choose from the following options:Īll Applets in View. Determines how on screen data prints when you use the application-level menu (File, then Print).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |