Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-03-2019, 02:31 AM
Browny38 Browny38 is offline Unsubscribe code for newsletter Windows 10 Unsubscribe code for newsletter Office 2016
Novice
Unsubscribe code for newsletter
 
Join Date: Jan 2019
Posts: 3
Browny38 is on a distinguished road
Default Unsubscribe code for newsletter

Hi I am starting up a monthly newsletter and want to add a unsubscribe button in Vba
I can get the button in position but need the code. Help appreciated.
I have written this but it needs editing.
Sub UnsubEmail ()
Dim c1App As Outlook.Application
Dim c1Mail As Outlook.MailItem
Set c1App = CreateObject(“Outlook.Application”)
Set c1Mail = c1App.CreateItem(c1MailItem)
c1Mail.To = My Email
c1mail.Subject = “Unsubscribe”
c1Mail.Body = “Unsubscribe this person”
c1Mail.Send
‘Clean Up
Set c1App = Nothing
Set c1Mail = Nothing
End Sub

Last edited by Browny38; 01-03-2019 at 05:19 PM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsubscribe code for newsletter Electronic Newsletter MaineLady Word 1 09-11-2016 06:16 PM
Problems sending html newsletter vanderloo Outlook 0 11-08-2012 11:31 AM
unneccesary gap in newsletter, please help! slain Outlook 0 05-07-2011 03:44 AM
Email marketing help - "Unsubscribe" Footer DoughMan Outlook 0 04-06-2011 10:57 AM
Unsubscribe code for newsletter Curve the Text Box in a Newsletter? lewiedude Publisher 2 11-08-2005 08:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:28 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