Ugrás a tartalomra

Hogyan válaszolhatok HTML formátumban automatikusan az Outlook programban?

A Microsoft Outlook alkalmazásban konfigurálhatjuk a beállításokat és összeállíthatunk minden új üzenetet HTML formátumban, de nem tudunk automatikusan válaszolni a HTMT formátumú üzenetekre, mert mindig a fogadott üzenetek kezdeti formátumában válaszol. Ez a cikk bemutatja a HTML formátumú automatikus válaszadással kapcsolatos trükköket az Outlookban.

Válaszoljon HTML formátumban, formázással
Válaszoljon HTML formátumban automatikusan a VBA segítségével
Mindig HTML formátumban válaszoljon automatikusan a Kutools for Outlook segítségével


Válaszoljon HTML formátumban, formázással

Könnyű konvertálni az egyszerű szöveg vagy a gazdag szöveg formátumát HTML formátumba, amikor egy e-mail üzenetre válaszol az Outlook programban.

1: Válassza ki azt az e-mail üzenetet, amelyre később válaszol.

2: Kattintson a gombra Válasz gombot a Kezdőlap lapon (vagy az Outlook 2007 eszköztárán) válaszolhat a kiválasztott e-mailre.

3: Kattintson a gombra HTML a Szöveg formázása fül (vagy Opciók fül az Outlook 2007-ben).

Ezután a válaszoló üzenet azonnal HTML-formátumba konvertálódik.

4: Írja össze ezt a válaszüzenetet, majd kattintson a gombra Küldés gombot.


Válaszoljon HTML formátumban automatikusan a VBA segítségével

A következő módszer segít az összes HTML-formátumú e-mail automatikus megválaszolásában a Microsoft Outlook alkalmazásban.

1: Válassza ki azt az e-mail üzenetet, amelyre HTML formátumban válaszol.

2: Nyomja meg a gombot más + F11 gombokkal nyissa meg a Microsoft Visual Basic for Applications ablakot.

3: Kattintson a gombra betétlap > Modulok.

4: Illessze be a következő kódot az új modul ablakba.

Sub AlwaysReplyInHTML()
Dim oSelection As Outlook.Selection
Dim oItem As Object
'Get the selected item
Select Case TypeName(Application.ActiveWindow)
Case "Explorer"
Set oSelection = Application.ActiveExplorer.Selection
If oSelection.Count > 0 Then
Set oItem = oSelection.Item(1)
Else
MsgBox "Please select an item first!", vbCritical, "Reply in HTML"
Exit Sub
End If
Case "Inspector"
Set oItem = Application.ActiveInspector.CurrentItem
Case Else
MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", _
vbCritical, "Reply in HTML"
Exit Sub
End Select
    Dim oMsg As Outlook.MailItem
Dim oMsgReply As Outlook.MailItem
Dim bPlainText As Boolean
'Change the message format and reply
If oItem.Class = olMail Then
Set oMsg = oItem
If oMsg.BodyFormat = olFormatPlain Then
bPlainText = True
End If
oMsg.BodyFormat = olFormatHTML
Set oMsgReply = oMsg.Reply
If bIsPlainText = True Then
oMsg.BodyFormat = olFormatPlain
End If
oMsg.Close (olSave)
oMsgReply.Display
'Selected item isn't a mail item
Else
MsgBox "No message item selected. Please select a message first.", _
vbCritical, "Reply in HTML"
Exit Sub
End If
'Cleanup
Set oMsgReply = Nothing
Set oMsg = Nothing
Set oItem = Nothing
Set oSelection = Nothing
End Sub

5: Ha csak erre a kijelölt üzenetre szeretne html formátumban válaszolni, nyomja meg a gombot F5 gombot a kód futtatásához. Ezután megjelenik a válaszüzenet ablak, kérjük, állítsa össze és nyomja meg a gombot Küldés gombra az e-mail elküldéséhez.

Tipp::
Ha a jövőben mindig vagy gyakran szeretne válaszolni az e-mailekre html formátumban az Outlookban, folytassa a konfigurálást az alábbiak szerint.
1) Kattintson a gombra A Gyorselérés eszköztár testreszabása gombra az Outlook szalagban, majd kattintson a gombra További parancsok a legördülő menüből.

2) A Outlook opciók párbeszédpanelen:
2.1) Válassza ki makrók a Válaszd ki a parancsokat legördülő lista;
2.2) Válassza ki Project1.AlwaysReplyInHTML a parancsmezőben;
2.3) Kattintson a gombra hozzáad gomb (láthatja, hogy a kiválasztott makró hozzáadódik a jobb oldali mezőhöz);
2.4) Kattintson a gombra OK gomb. Lásd a képernyőképet:

3) Most hozzáadta a makrót a Gyorselérési eszköztáron, és egyként jelenik meg  ikon. Minden alkalommal, amikor html formátumban kell válaszolnia egy e-mailt, válassza ki az e-mailt, és kattintson erre a gombra az aktiválásához.


Mindig HTML formátumban válaszoljon automatikusan a Kutools for Outlook segítségével

Kutools az Outlook számára : több mint 100 praktikus Outlook-bővítménnyel, szabadon kipróbálható korlátozás nélkül 60 nap alatt.

Itt egy praktikus segédprogramot ajánlok neked - Javítva a válasz formázása of Kutools az Outlook számára. Ezzel a segédprogrammal könnyedén megadhatja a válasz formátumát, például a HTML-t, az egyszerű szöveget és az RTF-et, és a megadott formázást az összes jövőbeli válasz-e-mail válasz-formátumaként rögzítheti.

1. kettyenés Kutools > Javított formázás > Javítva a válasz formázása > Válasz formázása beállítása. Lásd a képernyőképet:

2. Ban,-ben Válasz formázása beállítása párbeszédpanelen válassza a ikont HTML majd kattintson a OK gombot.

3. Most kattintson Javított formázás > Javítva a válasz formázásaEngedélyezze a Fix válasz formázást a Kutools fül alatt a segédprogram engedélyezéséhez.

Mostantól az Outlook mindig HTML formátumban válaszol egy e-mailre.

Ha szeretné ingyenesen kipróbálni ezt a segédprogramot, kérjük, látogasson el ide: ingyenesen letölthető a szoftver először, majd lépjen a művelet végrehajtására a fenti lépések szerint.


A legjobb irodai hatékonyságnövelő eszközök

Kutools az Outlook számára - Több mint 100 hatékony funkció az Outlook feltöltéséhez

🤖 AI Mail Assistant: Azonnali profi e-mailek mesterséges intelligencia varázslattal – egyetlen kattintással zseniális válaszok, tökéletes hangnem, többnyelvű elsajátítás. Alakítsa át az e-mailezést könnyedén! ...

???? E-mail automatizálás: Hivatalon kívül (POP és IMAP esetén elérhető)  /  Ütemezze az e-mailek küldését  /  Automatikus CC/BCC szabályok szerint e-mail küldésekor  /  Automatikus továbbítás (Speciális szabályok)   /  Automatikus üdvözlet hozzáadása   /  A több címzettnek szóló e-mailek automatikus felosztása egyedi üzenetekre ...

📨 Email Management: Könnyen visszahívhatja az e-maileket  /  Blokkolja az alanyok és mások átverő e-mailjeit  /  Törölje az ismétlődő e-maileket  /  Részletes keresés  /  Mappák összevonása ...

📁 Attachments ProKötegelt mentés  /  Batch Detach  /  Batch tömörítés  /  Automatikus mentés   /  Automatikus leválasztás  /  Automatikus tömörítés ...

🌟 Interface Magic: 😊További szép és menő hangulatjelek   /  Növelje Outlook termelékenységét a füles nézetekkel  /  Minimalizálja az Outlookot a bezárás helyett ...

👍 Csodák egy kattintással: Válasz mindenkinek a bejövő mellékletekkel  /   Adathalászat elleni e-mailek  /  🕘A feladó időzónájának megjelenítése ...

👩🏼‍🤝‍👩🏻 Névjegyek és naptár: Névjegyek kötegelt hozzáadása a kiválasztott e-mailekből  /  Egy kapcsolattartó csoport felosztása egyéni csoportokra  /  Távolítsa el a születésnapi emlékeztetőket ...

Több, mint 100 Jellemzők Várja felfedezését! Kattintson ide, ha többet szeretne megtudni.

 

 

Comments (25)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I've been using this macro for a couple years now. Unfortunately it has started to change the character set of the replied email to some unknown character set eg"整瑸栯浴㭬挠慨獲瑥甽晴㠭㸢਍䴼呅⁁䅎䕍∽敇" that is not translatable. Has anyone else come across this issue and if so were you able to find a fix?
This comment was minimized by the moderator on the site
Hi there,

Please try the code below:
Sub AlwaysReplyInHTML()
Dim xSelection As Outlook.Selection
Dim xItem As Object
Dim xMail As Outlook.MailItem
Dim xMailReply As Outlook.MailItem
'On Error Resume Next
Select Case TypeName(Application.ActiveWindow)
  Case "Explorer"
    Set xSelection = Application.ActiveExplorer.Selection
    If xSelection.Count > 0 Then
      Set xItem = xSelection.Item(1)
    Else
      MsgBox "Please select an item first!", vbCritical, "Kutools for Outlook"
      Exit Sub
    End If
  Case "Inspector"
    Set xItem = Application.ActiveInspector.CurrentItem
  Case Else
    MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", vbCritical, "Kutools for Outlook"
    Exit Sub
End Select
If xItem.Class = olMail Then
  Set xMail = xItem
  Set xMailReply = xMail.Reply
  xMailReply.Display
  xMailReply.BodyFormat = olFormatHTML
Else
  MsgBox "No message item selected. Please select a message first.", vbCritical, "Kutools for Outlook"
  Exit Sub
End If
Set xMailReply = Nothing
Set xMail = Nothing
Set xItem = Nothing
Set xSelection = Nothing
End Sub
This comment was minimized by the moderator on the site
Merci beaucoup.
Je l’ai modifié un peu, et ça fonctionne de nouveau chez moi, sans la transformation en Chinois…

Sub AlwaysReplyInHTML_Kutools()
Dim xSelection As Outlook.Selection
Dim xItem As Object
Dim xMail As Outlook.MailItem
Dim xMailReply As Outlook.MailItem

'On Error Resume Next
Select Case TypeName(Application.ActiveWindow)
  Case "Explorer"
    Set xSelection = Application.ActiveExplorer.Selection
    If xSelection.Count > 0 Then
      Set xItem = xSelection.Item(1)
    Else
      MsgBox "Please select an item first!", vbCritical, "Kutools for Outlook"
      Exit Sub
    End If
  Case "Inspector"
    Set xItem = Application.ActiveInspector.CurrentItem
  Case Else
    MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", vbCritical, "Kutools for Outlook"
    Exit Sub
End Select

If xItem.Class = olMail Then
  Set xMail = xItem
  'Changer le format ici, afin que la réponse inclu notre signature en html…!
        xMail.BodyFormat = olFormatHTML
  
  Set xMailReply = xMail.Reply
  xMailReply.Display
  'xMailReply.BodyFormat = olFormatHTML
Else
  MsgBox "No message item selected. Please select a message first.", vbCritical, "Kutools for Outlook"
  Exit Sub
End If

Set xMailReply = Nothing
Set xMail = Nothing
Set xItem = Nothing
Set xSelection = Nothing
End Sub
This comment was minimized by the moderator on the site
Thanks I'll give that a go. Have a nice day.
This comment was minimized by the moderator on the site
Hi,

as for answering everyone - it's very simple - just change the 31st line of code:

Set oMsgReply = oMsg.Reply --> change "oMsg.ReplyAll" or change "oMsg.Forward"

And to apply for "all emails" just do this:
Instead of creating buttons in quick access, create new buttons directly in the ribbon (Customize Ribbon), create a "Custom" ("New Group") there and create buttons from macros (first macro to "reply to all", second macro to "forward").

And the original "Reply" group can be removed from the ribbon ;)

Anyway, extendoffice.com is a great site from which I sometimes draw data - many thanks... ;)
This comment was minimized by the moderator on the site
This is great and solves a long term frustration with outlook! As someone not experienced with VBA coding could I get a little more advice on how to set up the replyall and forward functionality. I have the 'replyinHTML' working (with a custom ribbon button for it) but am not sure how the get the other options working. Should I be creating a new project or new module within the existing project with the modified code at line 31?
Any help appreciated - thanks!
This comment was minimized by the moderator on the site
Hi, you should save them respectively as three different modules. :)
This comment was minimized by the moderator on the site
Thank you!
This comment was minimized by the moderator on the site
Hello,

This works very well, thanks. But... it does not reply to all. Only the sender of the email received is added to the reply. What should I change in the code so it does "Reply to all" instead of "Reply"?


Thanks!
This comment was minimized by the moderator on the site
Running the macro works for one instance, but how to replicate it to occur on every instance?
This comment was minimized by the moderator on the site
I followed all of the steps listed about but when I press F5 to run the Module I get an error message saying that the Macros for this project have been disabled. I even tried going into Outlooks settings and telling Outlook to enable all Macros. Any help would be greatly appreciated!
This comment was minimized by the moderator on the site
Thanks a lot for this macro!
This comment was minimized by the moderator on the site
this only changes the email i have selected. how do you change it for all emails?
This comment was minimized by the moderator on the site
Same thing for me. Did you get any help?
This comment was minimized by the moderator on the site
Please, do you know the appropriate 'Alt F11' and 'F5' keys when using Outlook 2016 on a Mac?
This sure is an annoying omission by Microsoft. Many thanks. Hope you can help.
This comment was minimized by the moderator on the site
Thanks, it worked. You are da man!
This comment was minimized by the moderator on the site
Thank you for this, but i am having issues. I copy/pasted and the number were put above the text when i pasted it and I got the error message - "compile error: invalid outside procedure" Then i tried to just erase the numbers and leave the test and got : Run time Error - could not send message. - I then clicked Debug and got the same error as others: Set oMsgReply = oMsg.Reply Thoughts?
This comment was minimized by the moderator on the site
Dont open the email, only highlight it in outlook. Alt +F11 insert the module F5 New email should open as HTML to reply
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations