Note: The other languages of the website are Google-translated. Back to English
Mewngofnodi  \/ 
x
or
x
Cofrestru  \/ 
x

or

Sut i gael proc neu gadarnhad cyn anfon e-byst yn Outlook?

Mewn sawl gwaith, rydych wedi anfon e-bost ac wedi sylweddoli eich bod yn colli rhywbeth pwysig, neu fod rhywbeth o'i le yn ymddangos yn yr e-bost ychydig eiliadau yn ddiweddarach. Sut i osgoi anfon e-bost chwithig yn Outlook? Mewn gwirionedd gallwch ail-gadarnhau anfon yr e-bost ar ôl taro'r botwm Anfon yn Outlook. Gall y dull yn yr erthygl hon eich helpu i ddangos y broblem.

Sicrhewch awgrym neu gadarnhad cyn anfon e-byst â chod VBA


Sicrhewch awgrym neu gadarnhad cyn anfon e-byst â chod VBA

Gall y cod VBA canlynol eich helpu i ail-gadarnhau anfon e-bost ar ôl taro'r botwm Anfon yn Outlook. Gwnewch fel a ganlyn.

1. Gwasgwch y Alt + F11 allweddi i agor y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

2. Yn y Microsoft Visual Basic ar gyfer Ceisiadau ffenestr, cliciwch ddwywaith i agor y ThisOutlookSession ffenestr cod, ac yna copïwch isod y cod VBA i mewn i'r ffenestr cod.

Cod VBA: Sicrhewch gadarnhad cyn anfon e-byst yn Outlook

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim xPrompt As String
Dim xOkOrCancel As Integer
On Error Resume Next
xPrompt = "Do you want to continue sending the email?"
xOkOrCancel = MsgBox(xPrompt, vbOKCancel)
If xOkOrCancel <> vbOK Then
    Cancel = True
End If
End Sub

3. Gwasgwch y Alt + Q allweddi i gau'r Microsoft Visual Basic ar gyfer Ceisiadau ffenestr.

O hyn ymlaen, pan fyddwch chi'n taro'r anfon botwm i anfon e-bost yn Outlook, bydd blwch deialog cadarnhau yn ymddangos fel y dangosodd isod screenshot. Cliciwch OK i anfon yr e-bost hwn, cliciwch Diddymu i ddal i gyfansoddi'r e-bost.


Yr Offer Cynhyrchedd Swyddfa Gorau

Mae Kutools for Excel yn Datrys y rhan fwyaf o'ch Problemau, ac yn Cynyddu Eich Cynhyrchedd 80%

  • Ailddefnyddio: Mewnosod yn gyflym fformwlâu cymhleth, siartiau ac unrhyw beth rydych chi wedi'i ddefnyddio o'r blaen; Amgryptio Celloedd gyda chyfrinair; Creu Rhestr Bostio ac anfon e-byst ...
  • Bar Fformiwla Gwych (golygu llinellau lluosog o destun a fformiwla yn hawdd); Cynllun Darllen (darllen a golygu nifer fawr o gelloedd yn hawdd); Gludo i'r Ystod Hidlo...
  • Uno Celloedd / Rhesi / Colofnau heb golli Data; Cynnwys Celloedd Hollt; Cyfuno Rhesi / Colofnau Dyblyg... Atal Celloedd Dyblyg; Cymharwch y Meysydd...
  • Dewiswch Dyblyg neu Unigryw Rhesi; Dewiswch Blank Rows (mae pob cell yn wag); Darganfyddiad Gwych a Darganfyddiad Niwlog mewn Llawer o Lyfrau Gwaith; Dewis ar Hap ...
  • Copi Union Celloedd Lluosog heb newid cyfeirnod fformiwla; Auto Creu Cyfeiriadau i Daflenni Lluosog; Mewnosod Bwledi, Blychau Gwirio a mwy ...
  • Testun Detholiad, Ychwanegu Testun, Tynnu yn ôl Swydd, Tynnwch y Gofod; Creu ac Argraffu Subtotals Paging; Trosi rhwng Cynnwys a Sylwadau Celloedd...
  • Hidlo Super (arbed a chymhwyso cynlluniau hidlo i ddalenni eraill); Trefnu Uwch yn ôl mis / wythnos / dydd, amlder a mwy; Hidlo Arbennig gan feiddgar, italig ...
  • Cyfuno Llyfrau Gwaith a Thaflenni Gwaith; Uno Tablau yn seiliedig ar golofnau allweddol; Rhannwch Ddata yn Daflenni Lluosog; Trosi Swp xls, xlsx a PDF...
  • Mwy na 300 o nodweddion pwerus. Yn cefnogi Swyddfa / Excel 2007-2019 a 365. Yn cefnogi pob iaith. Defnydd hawdd yn eich menter neu sefydliad. Nodweddion llawn treial am ddim 30 diwrnod. Gwarant arian yn ôl 60 diwrnod.
tab kte 201905

Mae Tab Office yn Dod â rhyngwyneb Tabbed i'r Swyddfa, a Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
gwaelod officetab
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    ram · 23 days ago
    Clicking on cancel , sends the message
  • To post as a guest, your comment is unpublished.
    chasek · 3 months ago
    Hi, I get an error message when I run this VBA code.
    The error is "Compile error: Sub or function not defined."
     
  • To post as a guest, your comment is unpublished.
    Chase · 3 months ago
    Hi the code is giving me an error saying "Compile error:  Sub or Function not defined."
    What would be the cause for this?
  • To post as a guest, your comment is unpublished.
    MattyB · 3 months ago
    The reason it doesn't work when you restart Outlook is a secuirty one - the macro is not trusted by default, you have to self certify it. Follow the instructions on this site and it will all work fine after every restart... https://www.howto-outlook.com/howto/selfcert.htm
  • To post as a guest, your comment is unpublished.
    Brad Cohen · 1 years ago
    The solution worked for me once but I couldn't get it to work for me again. Any suggestions how to do that?

    • To post as a guest, your comment is unpublished.
      MattyB · 3 months ago
      The reason it doesn't work when you restart Outlook is a secuirty one - the macro is not trusted by default, you have to self certify it. Follow the instructions on this site and it will all work fine after every restart... https://www.howto-outlook.com/howto/selfcert.htm
  • To post as a guest, your comment is unpublished.
    InnerRalph · 2 years ago
    This worked one time, after tha never worked again.
    • To post as a guest, your comment is unpublished.
      MattyB · 3 months ago
      The reason it doesn't work when you restart Outlook is a secuirty one - the macro is not trusted by default, you have to self certify it. Follow the instructions on this site and it will all work fine after every restart... https://www.howto-outlook.com/howto/selfcert.htm
  • To post as a guest, your comment is unpublished.
    Eng · 2 years ago
    Hi There,

    For some reason, mine, it works well only for one day. The codes don't seem to work anymore the next day, although those codes remained intact,

    Anyone has such experience and know why?

    Thanks.
    • To post as a guest, your comment is unpublished.
      MattyB · 3 months ago
      The reason it doesn't work when you restart Outlook is a secuirty one - the macro is not trusted by default, you have to self certify it. Follow the instructions on this site and it will all work fine after every restart... https://www.howto-outlook.com/howto/selfcert.htm
    • To post as a guest, your comment is unpublished.
      vijay.feelingfresh@gmail.com · 1 years ago
      Seeing same issue, any desired solution?
    • To post as a guest, your comment is unpublished.
      Vij · 1 years ago
      Same issue, it doesn't work for next day or after relaunching outlook, any solution?
    • To post as a guest, your comment is unpublished.
      Daa · 2 years ago
      Hi, i've got the same experience. Not sure yet how to solve this, i'm very new to VBA.
      Would like to hear from you if you found a fix.
  • To post as a guest, your comment is unpublished.
    Flora · 2 years ago
    Hello! Very useful and it works perfectly.

    Is it possible to adjust the code so that it only pops up when there is an attachment? Similarly, is it possible to adjust it so it prompts the pop-up only when the message is sent externally (not to people of the company)?
  • To post as a guest, your comment is unpublished.
    Daniel · 2 years ago
    Hi There

    Is it possible to get a message to come up only when an attachment is present, and only when sent externally?

    Thank you very much!

    Daniel
  • To post as a guest, your comment is unpublished.
    Lin · 2 years ago
    If you want the pop-up to only happen when you send to several emails, i.e. >10, how do you do that?

    Oh and thanks, it works like a treat.
  • To post as a guest, your comment is unpublished.
    Yo · 3 years ago
    Buenas, me sirve pero me gustaría que solo me preguntara si se lo envío a determinados correos por si tengo que meter a alguno más.

    Gracias de antemano!!