Accessing the "My favories" folder

R

robot

Hello,

How do I use Word vba to return the "My Favorites" folder (which depends on
the user name.)

I use Word XP and Windows XP pro.

Thanks.
 
J

Jonathan West

robot said:
Hello,

How do I use Word vba to return the "My Favorites" folder (which depends
on
the user name.)

I use Word XP and Windows XP pro.


try this

Dim oShell As Object
Set oShell = CreateObject("Shell.Application")
MsgBox oShell.NameSpace(6).Items.Item.Path
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top