Option Explicit and For Each... Construct

  • Thread starter Richard Winston
  • Start date
R

Richard Winston

When you use Option Explicit, must you always make a forward declaration
of the Element that you define in your For Each... statement ? I've
been getting errors, something about variable not declared. When I
Dim'd the Element as an Object prior to the For Each...statement, the
message went away.


Thanks.
 
Top