A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Controlling Outlook application size and position



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 9th 07, 03:53 PM posted to microsoft.public.outlook.program_vba
Ken Warthen
external usenet poster
 
Posts: 12
Default Controlling Outlook application size and position

I'd like to write some VBA code to control the size and desktop position of
the Outlook application window. Any help will be greatly appreciated. TIA

Ken
  #2  
Old November 9th 07, 04:00 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Controlling Outlook application size and position

Outlook.Application.ActiveExplorer is the main Outlook window and you can
control the size of the window using the Height, Left, Top and Width
properties of that object.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ken Warthen" wrote in message
...
I'd like to write some VBA code to control the size and desktop position
of
the Outlook application window. Any help will be greatly appreciated.
TIA

Ken


  #3  
Old November 9th 07, 07:07 PM posted to microsoft.public.outlook.program_vba
Ken Warthen
external usenet poster
 
Posts: 12
Default Controlling Outlook application size and position

Thanks Ken. I wrote a procedure that sets the size and position of the
Outlook application. I called the procedure AutoExec() on the hope that
Outlook might automatically run the procedure whenever it is launched. That
doesn't happen. How can I get the procedure to run automatically as desired.
BTW, if you can recommend a good book that describes this type of
programming for Outlook I would again be very appreciative.

Ken

"Ken Slovak - [MVP - Outlook]" wrote:

Outlook.Application.ActiveExplorer is the main Outlook window and you can
control the size of the window using the Height, Left, Top and Width
properties of that object.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ken Warthen" wrote in message
...
I'd like to write some VBA code to control the size and desktop position
of
the Outlook application window. Any help will be greatly appreciated.
TIA

Ken



  #4  
Old November 12th 07, 01:57 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Controlling Outlook application size and position

AutoExec means nothing to Outlook.

In the Outlook VBA project you should see the ThisOutlookSession class
module under the Microsoft Office Outlook Objects tree in the Project
Explorer. Expand that and put your macro in the Application_Startup event
handler. In the Object dropdown at the top left of the module code select
Application. In the right-hand dropdown select Startup, put your code there.

You would also need to set the macro security based on whether or not you
are signing your code to get the macro to run when Outlook starts up.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ken Warthen" wrote in message
...
Thanks Ken. I wrote a procedure that sets the size and position of the
Outlook application. I called the procedure AutoExec() on the hope that
Outlook might automatically run the procedure whenever it is launched.
That
doesn't happen. How can I get the procedure to run automatically as
desired.
BTW, if you can recommend a good book that describes this type of
programming for Outlook I would again be very appreciative.

Ken


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling Startup Appearance John Jeffrey Outlook Express 1 July 15th 07 05:45 PM
controlling how Calendar displays Jeff Outlook - General Queries 0 April 30th 07 08:07 AM
Controlling maximum download message size in 2003 Leo Bueno Outlook - Installation 3 January 3rd 07 05:15 PM
Allow size & position of notes to fit PDA [email protected] Outlook - Installation 2 May 9th 06 12:13 AM
Controlling default email client - how to? Richard Lionheart Outlook Express 2 February 4th 06 01:45 AM


All times are GMT +1. The time now is 06:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.