VBA Syntax question

E

Ed Landau

Hello: Can someone tell me the difference between the following two VBA
statements (run withint Outlook 2003)

exExplorer.ShowPane (olNavigationPane, False) <-- Does not work
-and-
exExplorer.ShowPane olNavigationPane, False <-- Works

Thanks
-Ed
 
P

Peter Hewett

Hi Ed Landau

ShowPane is a method of an Explorer object. However, it's a Sub rather than a Function so
it does not return a value. You parenthesise the arguments *only* when a value is
returned.

HTH + Cheers - Peter
 

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