Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2013, 11:38 AM
BobBridges's Avatar
BobBridges BobBridges is offline VBA beginner Windows 7 64bit VBA beginner Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

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...?
Reply With Quote
  #2  
Old 09-05-2013, 01:29 AM
funkyfido funkyfido is offline VBA beginner Windows XP VBA beginner Office 2007
Novice
VBA beginner
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default update

I managed to solve my own question! I was trying to over complicate things. Thanks for all your help.
Liz
Reply With Quote
  #3  
Old 10-01-2013, 03:33 PM
macropod's Avatar
macropod macropod is offline VBA beginner Windows 7 32bit VBA beginner Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by BobBridges View Post
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.
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]
Reply With Quote
Reply

Tags
activecell, currentregion



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner VBA funkyfido Excel 1 08-27-2013 11:35 AM
VBA beginner Beginner needing help primmer3001 Office 1 08-22-2011 11:28 AM
VBA beginner Complete beginner needs some help. Biofodder Word VBA 1 03-14-2011 01:49 AM
VBA beginner 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft