Adjusting this startup macro for Outlook 2000?

S

StargateFan

I have this macro in ThisOutlookSession that works great in newer
versions of Outlook. Outlook 2000 doesn't like it, however and I need
to fix it, please:

------------------------
Sub Application_Startup()
On Error Resume Next
strMsg = "Do you want to run the macro to expand all the
folders... ?"
If MsgBox(strMsg, vbYesNo + vbQuestion, "Expand all?") =
vbYes Then
ExpandAllFolders
End If
' REMINDERmessageReBossCalendar
End Sub
------------------------


Once O2K starts and I click on yes to enable macros, this error comes
up:

"Compile error:

Can't find project or library"

And in the vbe, this is selected in blue from the macro above "strMsg
=" and the first line, "Sub Application_Startup()" shows up in
highlighted in yellow.

I imagine the syntax differs between Outlooks so hoping someone
remembers old code that will work with this older version so that this
popup msgbox will work with O2K as it works in higher Outlook versions
that I have to work with at the office.

Thx.
 
S

StargateFan

I have this macro in ThisOutlookSession that works great in newer
versions of Outlook. Outlook 2000 doesn't like it, however and I need
to fix it, please:

------------------------
Sub Application_Startup()
On Error Resume Next
strMsg = "Do you want to run the macro to expand all the
folders... ?"
If MsgBox(strMsg, vbYesNo + vbQuestion, "Expand all?") =
vbYes Then
ExpandAllFolders
End If
' REMINDERmessageReBossCalendar
End Sub
------------------------


Once O2K starts and I click on yes to enable macros, this error comes
up:

"Compile error:

Can't find project or library"

And in the vbe, this is selected in blue from the macro above "strMsg
=" and the first line, "Sub Application_Startup()" shows up in
highlighted in yellow.

I imagine the syntax differs between Outlooks so hoping someone
remembers old code that will work with this older version so that this
popup msgbox will work with O2K as it works in higher Outlook versions
that I have to work with at the office.

Thx.

I never received a response to this question and hoping someone
remembers enough about O2K to help out. It's my favourite version and
I went back to using it at home but this opening macro doesn't work in
it (though it works in later versions).

Anyone know how to fix?

Thanks!! ::g::
 

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