Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Ludwig Fischer   on Jan 21 In MS Office Category.

  
Question Answered By: Gustavo Costa   on Jan 21

If this is a Cut/Paste, there is a clue in that your

Sub Macro1()

ends with
end sub ' No big "E"

instead of with
End Sub ' Big "E"

The words "End Sub" should also be highlighted to indicate they are
recognized.

Also, a Call has no () unless passing variables:

The line
taskfinder()
should be
taskfinder
or
Call taskfinder


If you put the word "Call" in there, it will be highlighted to
indicate it is recognized as you enter it.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on defining subroutine in the main program Or get search suggestion and latest updates.


Tagged: