Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: VBA code looks funky now

Reply  
Thread Tools
theseus75's Avatar
Member with 274 posts.
 
Join Date: Jan 2005
Experience: Intermediate
11-Nov-2009, 10:35 AM #1
Red face Solved: VBA code looks funky now
I'm running Excel 2003 and I do a lot with macros. Normally, when I got into the VBA code to clean it up, it looks something like this:

Application.ScreenUpdating = False
Sheets("ptdays").Select
Range("L5:M5").Select
Selection.AutoFill Destination:=Range("L5:N5"), Type:=xlFillDefault
Range("L5:N5").Select
Range("M5:N5").Select
Selection.Cut

But now, when I record a new macro, the code looks more like this:

Sheets&VB_VarUserMemIdCAP DataVB_VarUserMemId'+Select
Range& VB_VarUserMemIdS73VB_VarUserMemId '+Select
Sheets& VB_VarUserMemIdSCIPVB_VarUserMemId '+Select
Range& VB_VarUserMemIdC5: N5VB_VarUserMemId '+Select


I'm not coder, and I had a hard time learning to read the first type. Is this some new structure to VBA or maybe some sort of view that's been changed?
Don't know if this matters, but I did have the beta of Office 2010 installed for a little while, but I uninstalled it already.

Thanks in advance for help.

Last edited by theseus75; 11-Nov-2009 at 10:36 AM.. Reason: spellling error
Ziggy1's Avatar
Computer Specs
Senior Member with 2,450 posts.
 
Join Date: Jun 2002
Location: Ontario,Canada
Experience: Advanced
11-Nov-2009, 01:29 PM #2
did you install Excel 2010 at any point? It seems to mess up the recorder, even if you uninstall.
Ziggy1's Avatar
Computer Specs
Senior Member with 2,450 posts.
 
Join Date: Jun 2002
Location: Ontario,Canada
Experience: Advanced
11-Nov-2009, 01:31 PM #3
Ok sorry, I just noticed you mentioned that you installed 2010....look here

This is really all you need to focus on ( from the link)...

office 2010 hosed the macro recorder. it hosed it for both 2003 and 2007. it
replaces these 2 files with new ones and they don't work very well with the
2 previous versions.

VBE6.DLL
VBE6EXT.OLB

once i deleted them and open 2003, it replaced them with the original
versions and the macro recorder works again.

--
__________________
Ziggy

ô¿ô
theseus75's Avatar
Member with 274 posts.
 
Join Date: Jan 2005
Experience: Intermediate
11-Nov-2009, 02:04 PM #4
Awesome! Thanks Ziggy. That was exactly the issue.

For anyone else who references this post, the files he mentions are in:

C:Program Files/Common Files/Microsoft Shared/VBA/VBA6

All Office apps have to be closed when you delete them, and when you open Excel again, you'll get some errors, it will repair, and then close and open again, and it's good to go!
Reply

Tags
excel, macros, vba

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:42 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.