shortcut for compressing outlook.pst ?

  • Thread starter Thread starter Wilfried
  • Start date Start date
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
 
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?
 
Back
Top