Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 25 Apr 2005 12:45:21 GMT,    group: microsoft.public.word.word97vba        back       


Select reference with VBA   
Does anyone know how to select a reference from the list of references 
with VBA code?

Thanks in Advance,

Mike
date: Mon, 25 Apr 2005 12:45:21 GMT   author:   Helper Monkey

Re: Select reference with VBA   
Hi Mike:

The only thing that I could think of is an undocumented Office 95 
"LOADONSTARTUP" registry key. I'm not sure if it still works, but you can 
try it. It's usually mentioned in VBA references for Access (go figure, 
huh?). If you use something like Installshield when you load your template 
you can set it to add a registry line that automatically forces Word to look 
for porcedures in other library databases using the LoadOnStartup Registry 
key. More on the subject can be found in:

http://www.fmsinc.com/tpapers/vbaint/

and

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaraccess/html/msdn_addinhlp.asp

Good luck-

Al

"Helper Monkey"  wrote in message 
news:MPG.1cd6b2154ecd08659896b3@netnews.worldnet.att.net...
> Does anyone know how to select a reference from the list of references
> with VBA code?
>
> Thanks in Advance,
>
> Mike
date: Sat, 7 May 2005 22:19:30 -0400   author:   Al Borges MD alborg at erols dot com

Re: Select reference with VBA   
Actually, now that I'm at home, the textbook "Access 2000 Developer's 
Handbook, Volume 1: Desktop Edition" by Getz/Litwin/Gilbert confirms that 
the LOAKONSTARTUP key method works well in Office 2000 applications (and 
probably on up). They have extended their coverage of this method (see page 
1348).

Good luck!
Al

"Al Borges MD" <alborg at erols dot com> wrote in message 
news:eZnueR3UFHA.580@TK2MSFTNGP15.phx.gbl...
> Hi Mike:
>
> The only thing that I could think of is an undocumented Office 95 
> "LOADONSTARTUP" registry key. I'm not sure if it still works, but you can 
> try it. It's usually mentioned in VBA references for Access (go figure, 
> huh?). If you use something like Installshield when you load your template 
> you can set it to add a registry line that automatically forces Word to 
> look for porcedures in other library databases using the LoadOnStartup 
> Registry key. More on the subject can be found in:
>
> http://www.fmsinc.com/tpapers/vbaint/
>
> and
>
> http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaraccess/html/msdn_addinhlp.asp
>
> Good luck-
>
> Al
>
> "Helper Monkey"  wrote in message 
> news:MPG.1cd6b2154ecd08659896b3@netnews.worldnet.att.net...
>> Does anyone know how to select a reference from the list of references
>> with VBA code?
>>
>> Thanks in Advance,
>>
>> Mike
>
>
date: Sun, 8 May 2005 02:31:29 -0400   author:   Al Borges

Re: Select reference with VBA   
You would use the VBA for Extensibility 5.3 library and work via the VBE and
VBProjects objects.

-- 
http://www.standards.com/; See Howard Kaikow's web site.
"Helper Monkey"  wrote in message
news:MPG.1cd6b2154ecd08659896b3@netnews.worldnet.att.net...
> Does anyone know how to select a reference from the list of references
> with VBA code?
>
> Thanks in Advance,
>
> Mike
date: Sun, 8 May 2005 14:47:53 -0400   author:   Howard Kaikow

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us