Note: The other languages of the website are Google-translated. Back to English
English English
  • Documenti
  • Outlook
  • Come aggiungere automaticamente il testo predefinito alla riga dell'oggetto in Outlook?

Come aggiungere automaticamente il testo predefinito alla riga dell'oggetto in Outlook? 

C'è un modo per aggiungere automaticamente il testo predefinito in un oggetto quando crei una nuova email in Outlook? In questo articolo, parlerò di alcuni modi utili per risolvere questo lavoro in Outlook.

Aggiungi automaticamente il testo predefinito alla riga dell'oggetto con il codice VBA

Aggiungi automaticamente il testo predefinito alla riga dell'oggetto con Kutools per Outlook


Aggiungi automaticamente il testo predefinito alla riga dell'oggetto con il codice VBA

Per aggiungere automaticamente il testo predefinito nella riga dell'oggetto, applicare il seguente codice VBA.

1. Tieni premuto il ALT + F11 chiavi per aprire il Microsoft Visual Basic, Applications Edition finestra.

2. Nel Microsoft Visual Basic, Applications Edition finestra, fare doppio clic Questa sessione di Outlook dal Progetto1 (VbaProject.OTM) riquadro per aprire la modalità, quindi copia e incolla il codice seguente nel modulo vuoto.

Codice VBA: aggiungi automaticamente il testo predefinito alla riga dell'oggetto:

Public xFlag As Boolean
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim xText As String
On Error Resume Next
If xFlag = False Then
    xText = "Skyyang-"
    If InStr(Item.Subject, xText) = False Then
L1:     xText = InputBox("Input Suject", "Kutools for Outlook", xText)
        If xText = "" Then
            xFlag = False
            Cancel = True
            Exit Sub
        End If
        Item.Subject = xText & " " & Item.Subject
        xFlag = True
        Cancel = True
    End If
Else
    xFlag = False
    xText = "Skyyang-"
    If InStr(Item.Subject, xText) = False Then
      GoTo L1
    End If
End If
End Sub

Note: In this code, the text “Skyyang-” is the text that you want to add into the subject as default, please change it to your own.

doc auto add text to subject 1

3. Then save and close the code window, now, create a new email, type the recipient into the To field, and enter the subject text into the Subject line, then click Send button, a prompt box will pop out to remind you adding this default text into the subject line, see screenshot:

doc auto add text to subject 2

4. And then click OK button, and the specified text has been add before the subject content, see screenshot:

doc auto add text to subject 3


Auto add default text to subject line with Kutools for Outlook

Here is an easy method also can help you to add default text to subject line. With Kutools for Outlook utility, you can quickly finish this task.

Kutools for Outlook : with more than 100 handy Excel add-ins, free to try with no limitation in 60 days. 

After installing Kutools for Outlook, please do as this:

1. Launch the Outlook, and then click Kutools > Options, see screenshot:

2. In the Options dialog box, click New tab, then check Add date into subject when creating new email option, and then enter the default text that you want to display in the subject line automatically, see screenshot:

3. Then click OK button, now, when you create a new email, your specified default text has been inserted into the subject line automatically as following screenshot shown:

doc auto add text to subject 6

Click to download Kutools for Outlook and free trial now!


Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL