Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2015, 05:05 AM
rob7676 rob7676 is offline Submit to Email Command Button Windows 7 64bit Submit to Email Command Button Office 2013
Novice
Submit to Email Command Button
 
Join Date: Aug 2015
Posts: 1
rob7676 is on a distinguished road
Default Submit to Email Command Button

I have created a simple suggestion form with a basic command button. However when I click submit, it opens two email windows rather than 1.



Code:
Private Sub CommandButton1_Click()
    Options.SendMailAttach = True
    ActiveDocument.SendMail
End Sub
Also, is there a way I can make the button hidden after submit is clicked so it doesn't send through with the attachment?

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit to Email Command Button Macro for submit email AmyScott Excel Programming 2 12-29-2014 09:28 AM
Submit to Email Command Button VBA Code for a SUBMIT button in a Word form BlueMax Word VBA 3 08-07-2013 06:26 AM
Submit to Email Command Button command button that generates a popup for sending email oduntan Word VBA 4 03-21-2013 02:15 PM
Submit to Email Command Button Email submit that... antipelagian Word VBA 3 02-12-2013 12:07 PM
Submit to Email Command Button Command button - save in temp folder and send email with attachment bigbird69 Word VBA 13 11-18-2012 10:06 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:26 PM.


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