How to get the name or path of opened file in MSWord?

H

hamidC++

I am trying to write an addin for MSWord which encrypts a MSWord file
In order to encrypt a file opened in Word I need to get the file's path or
name from Word. How should I do this job?
Thanks,
HamidC++
 
K

Ken Slovak - [MVP - Outlook]

The Object Browser is your friend. Every Document object has Name, FullName
and Path properties.
 
H

hamidC++

Can you explain it to me a bit more. I am a very beginner in the concept.
Thanks,
 
C

Cindy M.

Hi =?Utf-8?B?aGFtaWRDKys=?=,
Can you explain it to me a bit more. I am a very beginner in the concept.
What would you like explained? The Object Browser? Open Word, press Alt+F11 to
open the VBA IDE, press F2 to start the Object Browser. Enter the term you want
to search for in the box next to the binoculars, click the binoculars.
Everything in the object model with those characters in it will be listed.

If you want to understand more about properties such as Name, Fullname and Path,
then you right-click on the term and choose "Help" to open the object model Help
to that topic.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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