Rylo:
Thanks for catching my typo. I didn't know about VAL. So its OK to DIM the variables as STRING and then use VAL to paste it into the cell as something else? I"ll give it a try, and try to read some help files on VAL.
If the user hits cancel, I"d want to force them to complete in the dialog that is renaming the worksheet, but for some of the others I could be lienient and allow them to continue on, letting the code paste nothing into that particular cell. The Cells in question on the sheet are open to the user to type into anyway. I was just trying to make it easy for some novice users.
Thanks for your reply. I'll go pay more attention to my syntax.
While we're at it...any tips on making things run faster. This macro is tied to a Command Button that triggers it off. Any ideas?
I've got another macro that seems to go way too slowly also. It does what I ask of it, but I'd think on the machine I'm on it should crank. MY CPU meters get redlined on both processors as it does its deal. The code does nothing more than paste some values into a column. Each cell in that column however drives into formulas in six adjacent cells that each do some retrieval from other pages with INDIRECT references and then some simple math. I inserted an
at the front end and then turn it back to True once the looping is done. I'm not sure if that made it faster, but at least you don't watch it sporadically post data into their respective fields. It does its deal, and then when it's done the whole screen appears. I like that, but I'm hoping to make the whole thing occur more quickly.
It begins with a Worksheets.Activate so I'm wondeirng if each time it pastes a cell, it's in essence starting itself over again so I get a geometric progression of complexity as the code does its thing. Or maybe its just the adjacent formulas having to do their thing with each update that slows it down? Is there a way to turn off recalculating until you're done pasting in the values that will trigger recalcs? that might be fun to try...
I don't know. I'm just a newbie trying my hand at a few things.
Any insight much appreciated.
Thanks.
Bookmarks