How do You "CALL" a Function from a Sub

  • Thread starter Thread starter Allen Browne
  • Start date Start date
Hi;

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

Thank You.

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
 
Back
Top