PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming I Need A Macro

Reply

I Need A Macro

 
Thread Tools Rate Thread
Old 24-02-2005, 09:29 PM   #1
=?Utf-8?B?Sm9obiBDYWxkZXI=?=
Guest
 
Posts: n/a
Default I Need A Macro


Hi

I use Windows 2000 with Outlook 2000. I would like to have a macro that
allows me to:

1. Go to File
2. Open
3. Other User's Folder
4. Select Name (then pick the name I want eg: John Smith, Conference Room etc)
5. Select Calendar from the "Folder" drop down box
6. Select "OK"

Is this possible?

Any help would be much appreciated, thanks


John Calder

  Reply With Quote
Old 25-02-2005, 02:02 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: I Need A Macro

Not like that it's not. You could access the File, Open menu but from there
you would be working with the menu itself, which can't be controlled. To do
exactly what you want would require creating a form (UserForm in Outlook
VBA) with the list of folders you want to open and then when a selection was
made using the NameSpace.GetSharedDefaultFolder method with the selection as
an Outlook Recipient item to open the folder.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"John Calder" <John Calder@discussions.microsoft.com> wrote in message
news:EACB9AE9-13EA-4E39-9D4E-90F9599F5F58@microsoft.com...
> Hi
>
> I use Windows 2000 with Outlook 2000. I would like to have a macro that
> allows me to:
>
> 1. Go to File
> 2. Open
> 3. Other User's Folder
> 4. Select Name (then pick the name I want eg: John Smith, Conference Room
> etc)
> 5. Select Calendar from the "Folder" drop down box
> 6. Select "OK"
>
> Is this possible?
>
> Any help would be much appreciated, thanks
>
>
> John Calder
>


  Reply With Quote
Old 25-02-2005, 08:52 PM   #3
Tim
Guest
 
Posts: n/a
Default I Need A Macro

It would be pretty easy to do actually. Just go through
the exact process of opening the folder without using
your mouse, only keyboard commands. During the process,
record every keystroke you make, and once you have it all
written down write a VBScript and use the "sendkeys"
command to send the keystrokes. Remember to sleep the
program a little if some things take a little while to
load after the previous keystroke (ie: a window takes 3
seconds to pop up, used wscript.sleep 3000)

Tim
>-----Original Message-----
>Hi
>
>I use Windows 2000 with Outlook 2000. I would like to

have a macro that
>allows me to:
>
>1. Go to File
>2. Open
>3. Other User's Folder
>4. Select Name (then pick the name I want eg: John

Smith, Conference Room etc)
>5. Select Calendar from the "Folder" drop down box
>6. Select "OK"
>
>Is this possible?
>
>Any help would be much appreciated, thanks
>
>
>John Calder
>
>.
>

  Reply With Quote
Old 28-02-2005, 03:01 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: I Need A Macro

Outlook has no macro recorder so that won't work at all.

Once you access a menu item using code you have no control over the dialog
that menu item shows or any properties in that dialog.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tim" <tcastantine@jlack.com> wrote in message
news:07ce01c51b7b$dc0f8860$a501280a@phx.gbl...
> It would be pretty easy to do actually. Just go through
> the exact process of opening the folder without using
> your mouse, only keyboard commands. During the process,
> record every keystroke you make, and once you have it all
> written down write a VBScript and use the "sendkeys"
> command to send the keystrokes. Remember to sleep the
> program a little if some things take a little while to
> load after the previous keystroke (ie: a window takes 3
> seconds to pop up, used wscript.sleep 3000)
>
> Tim


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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