Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Software Development
Tag Cloud
access audio black screen blue screen bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet itunes keyboard laptop malware monitor network networking outlook problem ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
VBA "Auto Quick Info" AKA Intellisense

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
kriswork's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Oct 2009
Location: Swindon, UK
Experience: Intermediate
26-Oct-2009, 10:54 AM #1
Question VBA "Auto Quick Info" AKA Intellisense
Hi All,

I'm using MS Access 2003 VBA and also Excel2003.
"Auto Quick Info" works fine for MS Access, but is there an option for it to help out with other office apps that I'm working with from MS Access.
All my code is called from MS Access, but I'm doing alot of work with Excel (from MS Access) and "Auto Quick Info" does not help me with Excel objects when writing code in MS Access.
If I load Excel and then load another copy of VBA from there I can then get the parameters etc to appear but it is a bit of a pain to do it that way.

Thanks

Kristian
Rollin_Again's Avatar
Distinguished Member with 3,728 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
28-Oct-2009, 08:42 PM #2
Are you using late binding or early binding when accessing the other applications?

Regards,
Rollin
Rollin_Again's Avatar
Distinguished Member with 3,728 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
28-Oct-2009, 08:43 PM #3
It would also be helpful to post some of your sample code if possible.

Regards,
Rollin
kriswork's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Oct 2009
Location: Swindon, UK
Experience: Intermediate
29-Oct-2009, 10:03 AM #4
Smile I think I've worked it out now...
Thanks for the reply.
The 'auto quick info' seems to work out what to suggest from what you have dimmed the variable as.
This works fine for most things unless you dim a variable as type 'Object' from which the 'auto quick info' can't make any suggestions.
I've been working from someone elses code who had dimmed all the variables for use with Excel as just 'object' rather than using 'workbook' or 'worksheet' - I'll swap all the dims over and see what happens.

Thanks

Kris
kriswork's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Oct 2009
Location: Swindon, UK
Experience: Intermediate
29-Oct-2009, 10:14 AM #5
Having thought a bit more, I guess dimming something as an 'object' counts as late binding
Rollin_Again's Avatar
Distinguished Member with 3,728 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
29-Oct-2009, 02:31 PM #6
Your last statement is correct. If you set reference to the appropriate VBA library (early binding) the intellisense will be available in the VB editor. The only downside to early binding is that the object library that you have set reference to may not be available on the user's computer if they have an earlier version of the application installed on their PC.

Regards,
Rollin
Reply Bookmark and Share

Tags
access, excel, vba

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 10:36 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.