![]() |
|
|
|
#1
|
||||
|
||||
|
I never use Option Explicit. But there's no reason you shouldn't; you can turn it on, and include Dim statements for each variable mentioned in my code that doesn't already have one. Come to think of it, I think that's just wo.
You definitely should change the variable names to something that works for you. I like short names, so I've gotten used to meaningful abbreviations—"meaningful" in the sense that they mean something to me. But the important thing is that your program mean something to you. But you ask for pointers to how to "do this"; you mean how to change the variable names? That's so easy that I'm doubtful it can be what you meant; you just write over them, just like editing an email. If "soFm" is nonsense to you and you want to use "SourceWSheet" instead, just write "SourceWSheet" wherever the original code uses "soFm". Or use the VBA Editor's Find/Replace function. But as I said, that's so simple that it can't be what you were asking...? |
|
#2
|
|||
|
|||
|
I managed to solve my own question! I was trying to over complicate things. Thanks for all your help.
Liz |
|
#3
|
||||
|
||||
|
Not using Option Explicit is a disaster waiting to happen. Without it, you can end up with all sorts of strange run-time errors due to mistyped variables. I don't know of a single professional coder who doesn't use it.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
| Tags |
| activecell, currentregion |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beginner VBA | funkyfido | Excel | 1 | 08-27-2013 11:35 AM |
Beginner needing help
|
primmer3001 | Office | 1 | 08-22-2011 11:28 AM |
Complete beginner needs some help.
|
Biofodder | Word VBA | 1 | 03-14-2011 01:49 AM |
HELP...Beginner
|
Leeroy4022 | Word VBA | 2 | 02-25-2011 02:16 AM |
| Just a beginner...be nice please! | Tommy Gun | Project | 1 | 02-18-2009 03:06 AM |