Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-16-2018, 09:08 PM
Logit Logit is offline pause VBA code to view PDF file then continue or cancel Windows 10 pause VBA code to view PDF file then continue or cancel Office 2007
Expert
 
Join Date: Jan 2017
Posts: 591
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

.
If it were me .. I would allow the PDF to display after creation. Review the PDF and decide if it requires editing.

In your macro code, just before "With MailOutLook" which is right after the creation of the PDF file, insert this macro code :

Code:
Dim Msg As String, Title As String
  Dim Config As Integer, Ans As Integer
  Msg = "Approve sending the PDF file ? "
 
 
  Title = "Proceed YES / NO "
  Config = vbYesNo + vbQuestion
  Ans = MsgBox(Msg, Config, Title)
  If Ans = vbYes Then GoTo continue:
  If Ans = vbNo Then Exit Sub
continue:
This will give you an opportunity to choose continuing with the PDF as is, or exiting the email macro completely so you can make changes to the PDF.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
What Causes Outlook to Continue Changing File Size While Closed? chasfh Outlook 2 04-14-2018 06:32 AM
pause VBA code to view PDF file then continue or cancel Displaying Code in a task usage view ksa5024 Project 1 06-15-2016 06:15 PM
pause VBA code to view PDF file then continue or cancel Stop macro if no file is selected in dialog box (when user presses cancel instead of selecting file) spencerw.smith Word VBA 2 08-12-2014 07:56 AM
pause VBA code to view PDF file then continue or cancel How to save a PPT file in 'Reading View' to be opened always in 'Reading View' ItzVickey PowerPoint 2 08-08-2012 09:23 AM
pause VBA code to view PDF file then continue or cancel How do you view the source code in a Word 10 web document? provlima Word 2 05-25-2012 01:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft