how/what dialog boxes can I display from VBA code

Status
Not open for further replies.
B

bWFzYW5pIHBhcmVzaA

Hi,

I am using messagebox in my VBA macro. The MessageBox seems to not working

as it doesn't get focused me until I activate my Outlook window.

I also want to keep adding messages like "XXX", "YYYY" in same dialog box.

Basically I am looking for similar dialog og "New Alert Item" that outlook

support.

Could you please suggest how/what dialog box that I can display from VBA code?

Please let me know if you have any questions.

Thanks,

Paresh
 
K

Ken Slovak - [MVP - Outlook]

MsgBox is modal, you can't add to it after it's displayed, and the code

won't proceed until the user dismisses the message box.

You can use a VBA UserForm, displayed non-modally to show text and add to it

when you want. But that won't have the transparency or timed removal you

have with the new message toast window that Outlook shows.

There are 3rd party controls you can purchase that you can set transparency

on and you can call and dismiss them based on a timer control, but that's

not really appropriate for VBA code.

I'd just probably stick with a UserForm since this is VBA code. Anything

else would be very complex to implement.

"masani paresh" <masanip@deshaw.com> wrote in message

news:DE03B2D0-B6FE-404A-81E7-35C6E4DB975B@microsoft.com...
> Hi,

> I am using messagebox in my VBA macro. The MessageBox seems to not working
> as it doesn't get focused me until I activate my Outlook window.

> I also want to keep adding messages like "XXX", "YYYY" in same dialog
> box.
> Basically I am looking for similar dialog og "New Alert Item" that outlook
> support.

> Could you please suggest how/what dialog box that I can display from VBA
> code?

> Please let me know if you have any questions.

> > Thanks,
> Paresh
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D.Moore PickFolder dialog "extension" Outlook VBA and Custom Forms 0
Commodore Folders always closed in move/copy items dialog box Using Outlook 3
P IMAP Folders Dialog Box Using Outlook 1
P Suppress dialog box on email check error? Using Outlook 5
S Reminder Dialog Open Button Using Outlook 2
Laurent Duchastel New email setup dialog doesn't allow alias Using Outlook 2
I Dialog called up multiple times when saving emails from macro Outlook VBA and Custom Forms 2
Diane Poremsky Enter Network Password Dialog Keeps Popping Up New Slipstick.com Articles 0
Diane Poremsky Rules & Alerts Dialog Won't Open New Slipstick.com Articles 1
moron save as & file location dialog box popup Outlook VBA and Custom Forms 2
N Outlook dialog about retention policy Using Outlook 3
P VBA for Dialog Box when sending Email Using Outlook 8
R Need code to gather value of custom field on addressentry.details dialog box Using Outlook 3
D Contacts as default in Select Names dialog Using Outlook 1
B Sign-in dialog pops up repeatedly for shared calendars Using Outlook 1
H Attachment dialog box "Always do this action" greyed out Using Outlook 4
J Getting Rid of Mail Mail Delete Confirmation Dialog Box in Outlook 2010 Using Outlook 2
N Receive "Requested Operation Failed" Dialog when trying to add BCM Database in Outlook 2010 Using Outlook 2
F A dialog box is open, close it and try again. Don't see any dialog box open. Using Outlook 5
O reminder listed twice on reminder dialog Using Outlook 5
R how do I eliminate allow access dialog box using VBAproject in Out Outlook VBA and Custom Forms 1
J Select Names Dialog Box Outlook VBA and Custom Forms 16
P Open Advanced Search Dialog Outlook VBA and Custom Forms 1
A outlook AdvanceFind dialog Outlook VBA and Custom Forms 5
S how to add my custom items to "Change E-mail Account" dialog Outlook VBA and Custom Forms 1
J Save As dialog box on screen Outlook VBA and Custom Forms 1
H How turn off outlook security warning dialog box from outlook Outlook VBA and Custom Forms 1
R (Outlook2003)Monitor change for "to" "cc" "bcc" on message compose dialog? Outlook VBA and Custom Forms 6
P How to Open File Selector dialog in VBA Outlook VBA and Custom Forms 4
B Browse Dialog Box Outlook VBA and Custom Forms 1
M Outlook2007 and VSTO, handle the Click on the Save Button in the IPM.Note dialog HOWTO? Outlook VBA and Custom Forms 4
J common dialog Outlook VBA and Custom Forms 1
C BCM Text Boxes & tabs are too short when downloading to Office 365 BCM (Business Contact Manager) 0
T Duplicate emails in different "sent" boxes. Using Outlook 2
F Outlook 2010 - outlook userform and combo boxes Using Outlook 9
P Outlook 2013 rules -- not working reliably -- moving messages to wrong boxes Using Outlook 0
M Need help with combo boxes in messages! Using Outlook 10
G Published Email Form Doesn't Display Text Boxes to the Recipient Using Outlook 0
T Outlook 2007 forms: Check boxes and free text boxes not retaining data Using Outlook 1
G I have two mail boxes open, my personal company mail address and a department inbox . When I delete an item from the deparment nbox it goes into the d Using Outlook 1
D Inserting check boxes in task requests Outlook 2007 Using Outlook 2
N How to Disable pop up description boxes when the mouse cursor hovers above an email Using Outlook 1
J Duplicate default folders (Calendar, RSS Feed etc) when using Outlook 2007 on WinXP and Win7 boxes. I am not using PST files. Using Outlook 4
M when an email with pictures come through, it only shows blank boxes Using Outlook 3
V What happens when "Resource" recipients are put in To/cc boxes? Outlook VBA and Custom Forms 3
M In Outlook Calendar remove the buttons: 'Today' and '<' (Back a day) and '>' (Forward a day) that are below the Ribbon and above the calendar display. Using Outlook 0
C Why won't Title display in message list? Using Outlook 1
R Auto display of new email does not work on non-default account Outlook VBA and Custom Forms 0
E How to display "Change Folder" in Change Default Email Delivery Location in Exchange Outlook 2016 Using Outlook 1
T Column to display which email alias a message was sent to Outlook VBA and Custom Forms 6

Similar threads

Top