How do You "CALL" a Function from a Sub

A

Andy

Hi;

What code snippet is used to "Call" a Public Function from a Private Sub?

Thank You.

Andy
 
A

Andy

Allen;

Thank You for Your reply.

Did try Call MyFunction() before posting the question.

The () disappeared when the cursor was moved to the next line.

Returns the error: Sub or Function not defined.

Help states: "Sub, Function, or Property not defined (Error 35)"
Causes are Misspell, Reference to another project, Trying to call a Private
Function/Sub, or Check the "Ordinal".
Neither of those resolve this.

Deleted Call and left MyFunction()
The () remain but then get Syntax error.

Was about to send this and stopped to check one more thing.

Knew Your answer must be correct or You wouldn't have sent it.

Yahoo! I left out a character: MyFunctio(). Misspelled.

Thank You.

Andy
 

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