Skip i'r prif gynnwys

Sut i ymateb ar ffurf HTML yn awtomatig yn Outlook?

Yn Microsoft Outlook, gallwn ffurfweddu gosodiadau a chyfansoddi pob neges newydd ar ffurf HTML, ond ni allwn ateb negeseuon ar ffurf HTMT yn awtomatig, oherwydd ei fod bob amser yn ateb yn fformat cychwynnol y negeseuon a dderbynnir. Bydd yr erthygl hon yn cyflwyno triciau i chi am ateb mewn fformat HTML yn awtomatig yn Outlook.

Ymateb ar ffurf HTML â llaw gyda fformatio
Ymateb ar ffurf HTML yn awtomatig gyda VBA
Atebwch bob amser mewn fformat HTML yn awtomatig gyda Kutools ar gyfer Outlook


Ymateb ar ffurf HTML â llaw gyda fformatio

Mae'n hawdd trosi fformatau Testun Plaen neu destun Cyfoethog i'r fformat HTML pan fyddwch chi'n ateb neges e-bost yn Outlook.

1: Dewiswch y neges e-bost y byddwch chi'n ei hateb yn nes ymlaen.

2: Cliciwch y ateb botwm ar y Hafan tab (neu ar y Bar Offer yn Outlook 2007) i ateb y neges e-bost a ddewiswyd.

3: Cliciwch y HTML ar y Testun Fformat tab (neu Dewisiadau tab yn Outlook 2007).

Yna caiff y neges ateb ei throsi i'r fformat HTML ar unwaith.

4: Cyfansoddwch y neges ateb hon, a chliciwch ar y anfon botwm.


Ymateb ar ffurf HTML yn awtomatig gyda VBA

Bydd y dull canlynol yn eich helpu i ateb pob neges e-bost yn y fformat HTML yn awtomatig yn Microsoft Outlook.

1: Dewiswch y neges e-bost y byddwch chi'n ei hateb yn y fformat HTML.

2: Pwyswch y Alt + F11 allweddi i agor ffenestr Microsoft Visual Basic for Applications.

3: Cliciwch y Mewnosod > Modiwlau.

4: Gludwch y cod canlynol i mewn i ffenestr y modiwl newydd.

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: Os ydych chi am ateb y neges ddethol hon yn unig ar ffurf html, pwyswch y F5 allwedd i redeg y cod. Yna mae'r ffenestr neges ateb yn ymddangos, cyfansoddwch hi a gwasgwch y anfon botwm i anfon yr e-bost.

Awgrym::
Os ydych chi am ateb e-byst bob amser neu'n aml mewn fformat html yn y dyfodol yn Outlook, ewch ymlaen i ffurfweddu fel a ganlyn.
1) Cliciwch y Addasu Bar Offer Mynediad Cyflym botwm yn rhuban Outlook ac yna cliciwch Mwy o Orchmynion o'r gostyngiad.

2) Yn y Dewisiadau Outlook blwch deialog, mae angen i chi:
2.1) Dewis Macros yn y Dewiswch orchmynion oddi wrth rhestr ostwng;
2.2) Dewis Project1.AlwaysReplyInHTML yn y blwch gorchymyn;
2.3) Cliciwch y Ychwanegu botwm (gallwch weld bod y macro a ddewiswyd yn cael ei ychwanegu at y blwch cywir);
2.4) Cliciwch y OK botwm. Gweler y screenshot:

3) Nawr mae'r macro wedi'i ychwanegu ar y Bar Offer Mynediad Cyflym a'i arddangos fel  eicon. Bob tro pan fydd angen i chi ateb e-bost ar ffurf html, dewiswch yr e-bost a chliciwch ar y botwm hwn i'w actifadu.


Atebwch bob amser mewn fformat HTML yn awtomatig gyda Kutools ar gyfer Outlook

Kutools ar gyfer Rhagolwg : gyda mwy na 100 o ychwanegion Outlook defnyddiol, am ddim i geisio heb unrhyw gyfyngiad mewn 60 diwrnod.

Yma, rwy'n argymell cyfleustodau defnyddiol i chi - Fformatio Ateb Sefydlog of Kutools ar gyfer Rhagolwg. Gyda'r cyfleustodau hwn, gallwch chi nodi fformat ateb yn hawdd fel HTML, testun plaen a RTF, a thrwsio'r fformatio penodedig fel y fformat ateb ar gyfer pob e-bost ateb yn y dyfodol.

1. Cliciwch Kutools > Fformatio Sefydlog > Fformatio Ateb Sefydlog > Gosod Fformatio Ateb. Gweler y screenshot:

2. Yn y Gosod Fformatio Ateb blwch deialog, dewiswch y HTML dewis ac yna cliciwch ar OK botwm.

3. Nawr cliciwch Fformatio Sefydlog > Fformatio Ateb SefydlogGalluogi Fformatio Ateb Sefydlog o dan y tab Kutools i alluogi'r cyfleustodau.

O hyn ymlaen, mae Outlook bob amser yn ateb e-bost ar ffurf HTML.

Os ydych chi am gael treial am ddim o'r cyfleustodau hwn, ewch i dadlwythwch y meddalwedd am ddim yn gyntaf, ac yna ewch i gymhwyso'r llawdriniaeth yn ôl y camau uchod.


Offer Cynhyrchiant Swyddfa Gorau

Kutools ar gyfer Rhagolwg - Dros 100 o Nodweddion Pwerus i Werthu Eich Outlook

🤖 Cynorthwy-ydd Post AI: E-byst pro ar unwaith gyda hud AI - un clic i atebion athrylith, tôn berffaith, meistrolaeth amlieithog. Trawsnewid e-bostio yn ddiymdrech! ...

📧 E-bostio Automation: Allan o'r Swyddfa (Ar gael ar gyfer POP ac IMAP)  /  Amserlen Anfon E-byst  /  Auto CC/BCC gan Reolau Wrth Anfon E-bost  /  Awto Ymlaen (Rheolau Uwch)   /  Auto Ychwanegu Cyfarchiad   /  Rhannwch E-byst Aml-Dderbynnydd yn Negeseuon Unigol yn Awtomatig ...

📨 Rheoli E-bost: Dwyn i gof E-byst yn Hawdd  /  Rhwystro E-byst Sgam gan Bynciau ac Eraill  /  Dileu E-byst Dyblyg  /  Chwilio Manwl  /  Cydgrynhoi Ffolderi ...

📁 Ymlyniadau ProArbed Swp  /  Swp Datgysylltu  /  Cywasgu Swp  /  Auto Achub   /  Datgysylltiad Auto  /  Cywasgiad Auto ...

🌟 Rhyngwyneb Hud: 😊Mwy o Emojis Pretty a Cŵl   /  Rhowch hwb i'ch Cynhyrchiant Outlook gyda Golygfeydd Tabbed  /  Lleihau Outlook Yn lle Cau ...

???? Rhyfeddodau un clic: Ateb Pawb ag Ymlyniadau Dod i Mewn  /   E-byst Gwrth-Gwe-rwydo  /  🕘Dangos Parth Amser yr Anfonwr ...

👩🏼‍🤝‍👩🏻 Cysylltiadau a Chalendr: Swp Ychwanegu Cysylltiadau O E-byst Dethol  /  Rhannwch Grŵp Cyswllt i Grwpiau Unigol  /  Dileu Atgoffa Pen-blwydd ...

Dros Nodweddion 100 Aros Eich Archwiliad! Cliciwch Yma i Ddarganfod Mwy.

 

 

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