Invalid use of property

J

Jim

Why am I getting "Compile Error: Invalid use of property" on this
statement:

Application.StatusBar "Debugging..."

I have this line inside my AutoExec module.
(Using MS Word 2003 with SP2 and XP)
thanks
 
J

Jezebel

Because StatusBar is a property, not a method. So you have to assign a
value, not supply an argument. In other words, you need an equals sign --

Application.StatusBar = "Debugging..."
 
J

Jim

Thanks.

Jezebel said:
Because StatusBar is a property, not a method. So you have to assign a
value, not supply an argument. In other words, you need an equals sign --

Application.StatusBar = "Debugging..."
 

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