How to create a new form showing all types

Status
Not open for further replies.
R

Roland Sommer

Hi,

as a VB programmer I like to know, how to create a new form with

Outlook showing all type of objects (mail, task, calendar ...) within

a listbox. This ist only for simply learning and playing around.

I've tried to find information via searching the internet, but the

more I read the more I get confused. So can someone here post (or

mail) a very simply example or tell me, that ist is not possible.

TIA

Roland
 
You would need to create a VB user form with a list box, list view, or flex

grid control on it and write code to populate that control with information

from the items you want to include in the list. Each Outlook folder has an

Items collection that contains all the items in that folder.

Note that this doesn't seem to be related to Outlook custom forms, the topic

of this particular discussion forum. An Outlook form is used to display an

individual Outlook item.

Sue Mosher

"Roland Sommer" wrote:


> Hi,

> as a VB programmer I like to know, how to create a new form with
> Outlook showing all type of objects (mail, task, calendar ...) within
> a listbox. This ist only for simply learning and playing around.

> I've tried to find information via searching the internet, but the
> more I read the more I get confused. So can someone here post (or
> mail) a very simply example or tell me, that ist is not possible.

> TIA
> Roland
>
 
* Sue Mosher [MVP] wrote:


> Note that this doesn't seem to be related to Outlook custom forms, the topic
> of this particular discussion forum. An Outlook form is used to display an
> individual Outlook item.


ok, you're right, I forgot to mention that I will do this within

Outlook. So I don't

want VB and access via the application object, but create a new form

within

Outlook and fill a listbox or a grid using VBA. But I don't know how

to start.

Of course I know how to create a new form, but I can choose only Note,

Task ... but I want to have an empty one to start. Or am I wrong? So

how can

I create a new form with a listbox as an easy example?
 
* Sue Mosher [MVP] wrote:


> Note that this doesn't seem to be related to Outlook custom forms, the topic
> of this particular discussion forum. An Outlook form is used to display an
> individual Outlook item.


ok, you're right, I forgot to mention that I will do this within

Outlook. So I don't want VB and access via the application object, but

create a new form within Outlook and fill a listbox or a grid using

VBA. But I don't know how to start.

Of course I know how to create a new form, but I can choose only Note,

Task ... but I want to have an empty one to start. Or am I wrong? So

how can I create a new form with a listbox as an easy example?
 
Unless you want to get into quite complex Extended MAPI/C++ programming,

your form must be based on one of the six standard forms. The Post form is

the simplest. The article at http://www.outlookcode.com/article.aspx?ID=32

has information on working with a list box on an Outlook custom form.

That said, let me repeat: An Outlook custom form is used to display a single

Outlook item. Your scenario doesn't seem to be interested in creating

Outlook items using your custom form. Why then are you seeking to use an

Outlook custom form for this scenario instead of a user form in Outlook VBA,

which works pretty much the same as a user form in VB?

Also note that the code behind a custom form is VBScript, not VBA.

Sue Mosher

"Roland Sommer" <r.sommer@gmx.de> wrote in message

news:d0fdc8f7-5f65-4f06-936c-4a0552a4ec3a@e24g2000vbe.googlegroups.com...
> * Sue Mosher [MVP] wrote:
>
> > Note that this doesn't seem to be related to Outlook custom forms, the
> > topic
> > of this particular discussion forum. An Outlook form is used to display
> > an
> > individual Outlook item.


> ok, you're right, I forgot to mention that I will do this within
> Outlook. So I don't
> want VB and access via the application object, but create a new form
> within
> Outlook and fill a listbox or a grid using VBA. But I don't know how
> to start.

> Of course I know how to create a new form, but I can choose only Note,
> Task ... but I want to have an empty one to start. Or am I wrong? So
> how can
> I create a new form with a listbox as an easy example?
 
Sue Mosher [MVP] wrote:


> Unless you want to get into quite complex Extended MAPI/C++ programming,
> your form must be based on one of the six standard forms.


ok, that was missing in my knowledge.


> That said, let me repeat: An Outlook custom form is used to display a single
> Outlook item. Your scenario doesn't seem to be interested in creating
> Outlook items using your custom form. Why then are you seeking to use an
> Outlook custom form for this scenario instead of a user form in Outlook VBA,
> which works pretty much the same as a user form in VB?


You're right, user forms is what I was searching for (but due to my

lack of

knowlegde I searched in the wrong area). So now I can start develop my

sadly

missed functionality.

Thank you very much, Sue.
 
Sue Mosher [MVP] wrote:


> Unless you want to get into quite complex Extended MAPI/C++ programming,
> your form must be based on one of the six standard forms.


ok, that was missing in my knowledge.


> That said, let me repeat: An Outlook custom form is used to display a single
> Outlook item. Your scenario doesn't seem to be interested in creating
> Outlook items using your custom form. Why then are you seeking to use an
> Outlook custom form for this scenario instead of a user form in Outlook VBA,
> which works pretty much the same as a user form in VB?


You're right, user forms is what I was searching for (but due to my

lack of knowlegde I searched in the wrong area). So now I can start

develop my sadly missed functionality.

Thank you very much, Sue.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
O Create a custom contact form - questions before messing things up... 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
L Create Custom Form Using Outlook 0
T Create custom calendar entry form... Outlook VBA and Custom Forms 3
J Create Calendar Alert Event form Mail Subject line? Using Outlook 4
F Can I create a form associated with Room List Outlook VBA and Custom Forms 1
E Create a URL hyperlink in an Outlook custom form? Outlook VBA and Custom Forms 2
J How to create a user defined dropdown list field for a custom contact form Using Outlook 3
M How to create a hyperlink to to an organizational form Using Outlook 5
V create form for sending to customer Using Outlook 1
W create form in appointments pane? Using Outlook 5
D create auto number field in task form Outlook VBA and Custom Forms 4
C create a button go to linked account on a task form BCM (Business Contact Manager) 3
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
B Modify VBA to create a RULE to block multiple messages Outlook VBA and Custom Forms 0
J Want to create a button on the nav bar (module add-in) to run code Outlook VBA and Custom Forms 2
B How to create a button that sorts and selects the most recent message with ONE click Using Outlook 2
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
W Create a Quick Step or VBA to SAVE AS PDF in G:|Data|Client File Outlook VBA and Custom Forms 1
Wotme create email only data file Using Outlook 1
S Outlook 365 Help me create a Macro to make some received emails into tasks? Outlook VBA and Custom Forms 1
J How to create a drop down user defined field that will appear on an inbox view Outlook VBA and Custom Forms 8
Commodore Any way to create "from-only" account on Outlook 2021? Using Outlook 1
L Capture email addresses and create a comma separated list Outlook VBA and Custom Forms 5
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
NVDon Create new Move To Folder list Outlook VBA and Custom Forms 0
D Create advanced search (email) via VBA with LONG QUERY (>1024 char) Outlook VBA and Custom Forms 2
G Create ordinal numbers for birthday Outlook VBA and Custom Forms 2
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 5
D Create new email from the received Email Body with attachment Outlook VBA and Custom Forms 10
A How to create fixed signatures for aliases that process through GMAIL? Outlook VBA and Custom Forms 0
P Can I create a Rule that sends me an email when I get a Task? Using Outlook 2
M How create a Rule to filter sender's email with more that one @ sign Using Outlook 1
B Can I create a local PST file for SPAM on a drive that is usually disconnected? Using Outlook 3
Chiba Create an appointment for all the members Outlook VBA and Custom Forms 1
S Create a clickable custom column field Outlook VBA and Custom Forms 0
L automaticaly create a teams meeting with a sync Using Outlook 0
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0
F How to create phone number as links in notes of Contacts Using Outlook 2
Nessa Can't create new appointment Using Outlook 1
A Create date folder and move messages daily Outlook VBA and Custom Forms 1
C Create new Message with shared contacts & BCC'ing recipients Outlook VBA and Custom Forms 0
O Multiple email accounts - hesitate to create a new profile Using Outlook 3
G Can't create Folder Groups in Outlook 2013 Using Outlook 0
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
R Can not create folder to store specific emails in in Outlook for Mac Using Outlook 1
W Create Search Folder excluding Specific Email Addresses Using Outlook 5

Similar threads

Back
Top