Anyone use VBA in Excel: eclaring Arrays as Public

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Arrays Excel
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 6K views
Saladsamurai
Messages
3,009
Reaction score
7
Anyone use VBA in Excel::Declaring Arrays as Public

Egads man...I have seen plenty of modules with arrays declared as Public. Clearly I am making some boneheaded error here and cannot locate it:

ExcelError.jpg


Any Thoughts?
 
Physics news on Phys.org


Solved:

After some searching I found that the error is because I wrote my code in a sheet and not a module... :/