Calling a Public sub-routine from the script editor via VB script

Status
Not open for further replies.

Jacob Vaid

Member
Outlook version
Outlook 2016 32 bit
Email Account
Exchange Server
I have a public subroutine called "Forward". This is located within the "Thisoutlooksession" class module .
I am trying to call this code using a command button via the script editor.
I have not done this before. Therefore, any help in this regard would be a great help to me.
 
Thanks a lot Diane for replying back. For some reason, the code below is not working.

Private CommandButton3_Click()

complete

End sub


Do we use private subs in the Outlook VB script editor? I am fairly new to the outlook script editor. So, if this question sounds silly, please excuse me.

If I may digress a little bit, can you please guide me with the code to "forward" an email. I want to place it behind a command button within one of my custom forms.

Looking forward to your guidance.
 
Hi
I look for same solution
Have you solved it?
 
You can try this syntax
Code:
ThisOutlookSession.Forward
If that doesn´t work either, it´s probably blocked for security reasons. An alternative would be to move the method to a module (not a class module).
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Wayne Dardis Calling Ribbon Button in Outlook 2016 Outlook VBA and Custom Forms 6
A Calling one module from another Outlook VBA and Custom Forms 2
S VSTO calling unmanged function Outlook VBA and Custom Forms 3
H Auto-Dialer for calling contact Using Outlook 2
T PR_MESSAGE_CLASS is reset when calling Save() on item Outlook VBA and Custom Forms 4
B Sync Outlook Public Folders to Contacts Using Outlook 2
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
A Moving Public Folders to New Database Exchange Server Administration 3
Fozzie Bear Shared Public Folders Access and Use Exchange Server Administration 0
A Created a personal group that now appears to be a public group Using Outlook 3
A Prevent connection to Public Folders on Exchange? Exchange Server Administration 3
R Call a Public Sub when a Flag is clicked on in the Message Preview pane Outlook VBA and Custom Forms 1
R Copy Outlook Public Folders to a File Server Shared Folder Using Outlook 0
F How to assign a task to a public task folder? Using Outlook 1
D How to handle filing of emails from an Inbox Subfolder to a specific Public folder Using Outlook 1
D Record Appointment to Calendar on "Public Folder" Outlook VBA and Custom Forms 13
R Problem with searching public folders Exchange 2013/16 Exchange Server Administration 2
C Outlook 2016: Searching in all (+public) folders Outlook VBA and Custom Forms 9
X Delay sending an email until the next working day (public holidays) Outlook VBA and Custom Forms 0
L Public folders permissions Exchange Server Administration 1
Diane Poremsky Mail-enable Exchange Public Folders Using Outlook 0
K Macro to search emails between two time slots on public folders with excel export Outlook VBA and Custom Forms 12
Diane Poremsky How to Send Email When Traveling or Using Public Wi-Fi Using Outlook 0
Diane Poremsky Data loss may occur during public folder migration Using Outlook 0
S Empty an Office365 public folder containing 20.000 messages Using Outlook 2
D Priasoft Public Folder Syncro? Exchange Server Administration 0
I Random Chinese characters in email copied from a pst file. Exchange Server 2016 Public Folder Exchange Server Administration 1
T Create new item in public folder using VBscript Outlook VBA and Custom Forms 1
P Public Folder email error, ndr returned. Exchange Server Administration 1
J Favorites in Public Folders issue Outlook VBA and Custom Forms 0
P Last Change attribute set after viewing a public folder contact Exchange Server Administration 0
L any ways to create shortcuts to a public mail folder Using Outlook 4
L Should public contacts folder appear in "People" nav pane? Using Outlook 1
N Public Folder Calendar Permissions Exchange Server Administration 4
V Macro to open Public Folders subfolder? Outlook VBA and Custom Forms 1
S Contacts disappear in public folder search Using Outlook 1
R How to Block from sending mail to public domain. Using Outlook 8
I how to create appointment using saved template onto public folder shared calendar Using Outlook 3
M Codetwo Public Folders structure for vba Outlook VBA and Custom Forms 13
M How to copy attachments from a Public Folder in VBA Outlook VBA and Custom Forms 3
G Outlook 2013 - Default View for Public Folder Contacts Using Outlook 1
V Extracting user-defined details from a public folder Outlook VBA and Custom Forms 2
C Sync color categories on a Public Calendar across Office 365, PCs, Macs Using Outlook 1
C Ex2010 problems with mail-enabled public folders Exchange Server Administration 0
D How do I mail-enable a Public Folder Sub-folder in exchnage 2007 using shell ? Exchange Server Administration 0
A Outlook VBA - moving mail item to public folder using variable within path Using Outlook 6
E Outlook 2007 Saves .MSG E-Mails with attachment from Public Folders as RTF Using Outlook 0
P correct public folder migration exchange 2003 to 2010 Exchange Server Administration 1
S Pushing GAL to a public folder Exchange Server Administration 2
T Public Folder has many messages but can't be seen in Outlook Using Outlook 3

Similar threads

Back
Top