shortcut for compressing outlook.pst ?

W

Wilfried

Hello all,
compressing outlook.pst needs 5 clicks to start and 2 clicks to close
the windows (Outlook 2003).
Is there a VBA call for compressing outlook.pst, so that I can assign
that macro to a button?
thanks
Wilfried
 
W

Wilfried

Hi!

I managed to get it partially working in a German Outlook 2003
with the following macro:

Sub komprpst()
SendKeys "%dw{TAB}{DOWN}{TAB}{ENTER}%J", True
SendKeys "{ESC}{ESC}"
End Sub

In an English Outlook you will have to change the %dw and %J into
something else, possibly %fa and %Y.

The first command works, it starts the compression of outlook.pst which
is the second entry in the list of data files, hence the {DOWN} key.

However the second command which should close the windows after
finishing the compression does not work. Also not if the wait=True is
removed from the first command.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top