This isn't homework, just something I've been trying to accomplish. I didn't know where else to ask...
If your familiar with the windows command shell and/or batch scripting, you probably know that windows stores variables in shell32.dll. You can view the semi-permanent values in the environment variable section of system properties. Really, though, this is a MS Excel question for anyone who knows how to integrate VBA.
Here's the situation:
I wrote a simple RPG (like a MUD--except only single-user....so...a SUD) using batch files. Stats and the like are stored as windows variables. Incidentally, variables are temporary unles you use the setx command, which I've done. So all of my stats are saved in the environment variables and are semi-permanent (they can be written over). I've done this to act as a save/load game function.
Now, I want to integrate an auto-updating character sheet using excel. It's possible, from what I've read. Traditionally, I just google something and mess around with it until I figure it out. VBA is more of a headache than I bargained for, however.
My search returned THIS. I've copied their code into a module using the steps provided HERE.
Ultimately, I want to be able to input a variable name (say windir), and have it output the variable value (C:\windows).
Am I doing something incorrectly?
Any help with this would be greatly appreciated.