Hi all,
A novice VBA programmer here! I am attempting to write a macro which is essentially populating an Excel 2007 spreadsheet through stochastic simulation. I need to log the number of times a cell is activated, under each of four contexts.
So essentially, if Row i Column j is activated then a corresponding variable Aij, Bij, Cij or Dij would be created (if not already existing), or cumulated by 1.
The problem as I see it - completely generalised - is to create a variable where the variable name itself is formulaic, as well as its value. I know SAS would have no problem with this due to the order in which it parses data steps, but I'm pretty amateur with other programming languages so I don't know if this is blindingly obvious or downright impossible!
Thanks very much in anticipation of your help!
Bookmarks