VBA Form how to load in Outlook 2003

Status
Not open for further replies.
M

Mitch

I know this is an absolute newbie question, but I've designed a basic form

with radio/checkboxes etc. All I want it to do is load, but I can't seem to

find any way to actually link it to an Outlook button?

I see references to posting forms that are a different format, (Public forms

or some such thing), and I tried exporting the Form (Not actually sure it's

technically called a form), any advice?
 
Is this an Outlook item form (contact, email, task, etc.) or an actual VBA

form?

What steps did you take to create it?

What version of Outlook?

"Mitch" <Mitch> wrote in message

news:C8AD5423-6BB2-4DBE-804A-A13E68605E6B@microsoft.com...
> I know this is an absolute newbie question, but I've designed a basic form
> with radio/checkboxes etc. All I want it to do is load, but I can't seem
> to
> find any way to actually link it to an Outlook button?

> I see references to posting forms that are a different format, (Public
> forms
> or some such thing), and I tried exporting the Form (Not actually sure
> it's
> technically called a form), any advice?
 
Outlook 2003 11.8206.8221 SP3

Created it by going to the VB editor, insert UserForm. So far everything

I've found points to Contacts, inbox, message, calendar forms... but this is

just a form to generate emails based on user input.
wrote:


> Is this an Outlook item form (contact, email, task, etc.) or an actual VBA
> form?

> What steps did you take to create it?

> What version of Outlook?

> >

>

> "Mitch" <Mitch> wrote in message
> news:C8AD5423-6BB2-4DBE-804A-A13E68605E6B@microsoft.com...
> >I know this is an absolute newbie question, but I've designed a basic form
> > with radio/checkboxes etc. All I want it to do is load, but I can't seem
> > to
> > find any way to actually link it to an Outlook button?
> > I see references to posting forms that are a different format, (Public
> > forms
> > or some such thing), and I tried exporting the Form (Not actually sure
> > it's
> > technically called a form), any advice?


>
 
You can add a button to the toolbar that calls a macro. A macro is a Public

Sub that takes no arguments. That macro would be used to display your form.

Assuming your form is named "MyForm", to display it you'd use code something

like this:

Public Sub DisplayMyForm()

MyForm.Show vbModal

End Sub

The vbModal argument would stop code execution in your macro until the form

is closed, and wouldn't allow the user to work with anything else in Outlook

until the form was closed.

To open the form in a non-modal way where code execution could continue

after the call to open the form in the macro and the user could work on

other things in Outlook use the argument vbModeless.

If you right-click on the toolbar and select Customize then you can select

the Commands tab, select Macros in the list on the left and select your

macro. Then drag it where you want it on your toolbar. While in customize

mode you can right-click the new button to set properties such as the name

for the button.

"Mitch" <Mitch> wrote in message

news:2A35313A-6F24-481C-885D-2036FD9C94F0@microsoft.com...
> Outlook 2003 11.8206.8221 SP3

> Created it by going to the VB editor, insert UserForm. So far everything
> I've found points to Contacts, inbox, message, calendar forms... but this
> is
> just a form to generate emails based on user input.
 
fantastic, works like a charm! Appreciate the additional information on modal.
wrote:


> You can add a button to the toolbar that calls a macro. A macro is a Public
> Sub that takes no arguments. That macro would be used to display your form.
> Assuming your form is named "MyForm", to display it you'd use code something
> like this:

> Public Sub DisplayMyForm()
> MyForm.Show vbModal
> End Sub

> The vbModal argument would stop code execution in your macro until the form
> is closed, and wouldn't allow the user to work with anything else in Outlook
> until the form was closed.

> To open the form in a non-modal way where code execution could continue
> after the call to open the form in the macro and the user could work on
> other things in Outlook use the argument vbModeless.

> If you right-click on the toolbar and select Customize then you can select
> the Commands tab, select Macros in the list on the left and select your
> macro. Then drag it where you want it on your toolbar. While in customize
> mode you can right-click the new button to set properties such as the name
> for the button.

> >

>

> "Mitch" <Mitch> wrote in message
> news:2A35313A-6F24-481C-885D-2036FD9C94F0@microsoft.com...
> > Outlook 2003 11.8206.8221 SP3
> > Created it by going to the VB editor, insert UserForm. So far everything
> > I've found points to Contacts, inbox, message, calendar forms... but this
> > is
> > just a form to generate emails based on user input.


>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Geldner Problem submitting SPAM using Outlook VBA Form Outlook VBA and Custom Forms 2
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
D Using a VBA Custom Form to Send Reoccurring Email Upon Task Completion Outlook VBA and Custom Forms 4
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
M Multiple User Defined Fields that can be added, changed, updated using VBA and user form Outlook VBA and Custom Forms 0
G Adding a contact to Outlook with a custom form using Access VBA Outlook VBA and Custom Forms 1
M VBA Code to extract data from an Outlook Form Using Outlook 0
A VBA Script to Forward Spam to AntiSpam Provider Using "Blank" Form Outlook VBA and Custom Forms 2
J VBA Form in Outlook to capture data and complile a mail Outlook VBA and Custom Forms 2
R VBA Macro to VBScript in a form- Help Please! Using Outlook 10
J Outlook custom form - VBS call VBA macro Outlook VBA and Custom Forms 3
M Outlook VBA Form not finding FOR LOOP -- Error message Outlook VBA and Custom Forms 2
C Use VBA editor on my custom OL form Outlook VBA and Custom Forms 7
H using VBA to edit subject line Outlook VBA and Custom Forms 0
G Get current open draft message body from VBA Outlook VBA and Custom Forms 1
P VBA to add email address to Outlook 365 rule Outlook VBA and Custom Forms 0
M Outlook 2016 outlook vba to look into shared mailbox Outlook VBA and Custom Forms 0
V VBA Categories unrelated to visible calendar and Visual appointment Categories Outlook VBA and Custom Forms 2
D Outlook VBA forward the selected email to the original sender’s email ID (including the email used in TO, CC Field) from the email chain Outlook VBA and Custom Forms 2
R Outlook 365 VBA AUTO SEND WITH DELAY FOR EACH EMAIL Outlook VBA and Custom Forms 0
R Outlook 2019 VBA to List Meetings in Rooms Outlook VBA and Custom Forms 0
geoffnoakes Counting and/or listing fired reminders via VBA Using Outlook 1
O VBA - Regex - remove double line spacing Outlook VBA and Custom Forms 1
D.Moore Strange VBA error Outlook VBA and Custom Forms 4
B Modify VBA to create a RULE to block multiple messages Outlook VBA and Custom Forms 0
D Outlook 2021 Using vba code to delete all my spamfolders not only the default one. Outlook VBA and Custom Forms 0
K vba code to auto download email into a specific folder in local hard disk as and when any new email arrives in Inbox/subfolder Outlook VBA and Custom Forms 0
D VBA - unable to set rule condition 'on this computer only' Outlook VBA and Custom Forms 5
L Fetch, edit and forward an email with VBA outlook Outlook VBA and Custom Forms 2
BartH VBA no longer working in Outlook Outlook VBA and Custom Forms 1
W Can vba(for outlook) do these 2 things or not? Outlook VBA and Custom Forms 2
MattC Changing the font of an email with VBA Outlook VBA and Custom Forms 1
P MailItem.To Property with VBA not work Outlook VBA and Custom Forms 2
P Tweak vba so it can target another mailbox Outlook VBA and Custom Forms 1
A Outlook 2010 VBA fails to launch Outlook VBA and Custom Forms 2
richardwing Outlook 365 VBA to access "Other Actions" menu for incoming emails in outlook Outlook VBA and Custom Forms 0
W Create a Quick Step or VBA to SAVE AS PDF in G:|Data|Client File Outlook VBA and Custom Forms 1
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
C Outlook (desktop app for Microsoft365) restarts every time I save my VBA? Using Outlook 1
D VBA Macro to Print and Save email to network location Outlook VBA and Custom Forms 1
TedSch Small vba to kill political email Outlook VBA and Custom Forms 3
E Outlook 365 Outlook/VBA Outlook VBA and Custom Forms 11
N VBA Macro To Save Emails Outlook VBA and Custom Forms 1
Z VBA Forward vs manual forward Outlook VBA and Custom Forms 2
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
J VBA for outlook to compare and sync between calendar Outlook VBA and Custom Forms 1
A Any way to force sort by/group by on search results with VBA? Outlook VBA and Custom Forms 1
E Default shape via VBA Outlook VBA and Custom Forms 4
A Change settings Send/receive VBA Outlook VBA and Custom Forms 0

Similar threads

Back
Top