EdNerd
09-25-2012, 10:18 AM
I'm using some code to detect when a calendar reminder pops up. I want to use this to Show a UserForm.
I'd like to generate a random number and use that to pull in a specific block of text. But ideally I'd like to only generate the number once, and then I can increment it around my loop on successive Shows.
But that would require that I can somehow keep track of (a) my original number, and (b) how many times I've been around the loop so far. Everything with the UserForm gets destroyed when I close it. Is there any way to save or write these parameters to someplace the userForm can grab it on the next Show?
Ed
I'd like to generate a random number and use that to pull in a specific block of text. But ideally I'd like to only generate the number once, and then I can increment it around my loop on successive Shows.
But that would require that I can somehow keep track of (a) my original number, and (b) how many times I've been around the loop so far. Everything with the UserForm gets destroyed when I close it. Is there any way to save or write these parameters to someplace the userForm can grab it on the next Show?
Ed