Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Pamela Baker   on Mar 02 In MS Office Category.

  
Question Answered By: Wilfred Young   on Mar 02

Do you use Option Explicit at the top of your module?

VBA will automaticly instantiate a variable  type=variant for you if
you leave out the Dim. When you 'compile' though, if Option Explicit
is there it will tell you that the variable isn't defined... hasn't
got a Dim... otherwise it just goes ahead and works with the variant.

Share: 

 

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

 
Didn't find what you were looking for? Find more on Fundamental Q: passing/returning variables Or get search suggestion and latest updates.