Adding menu items

E

Eqbal Vakilzadeh

Hi,

I have written a program to change the Julian Date to Hijri Shamsi Date. I'd
like to put it on web for every one to use it, easily. Thus i need to
somehow install it on and bundle it to MS Word, in the Field> Date section.
Is it possible? How?

rgds,
eqbal
 
A

Astrid

Hi Eqbal,

You can't put it in the listbox that shows when you choose Insert - Date, but you can create another additional menu item in the Insert menu.
I think the most straightforward way to do this is to create an addin (just a template with your code), create the additional menu item there and ask the users to store it in Word's startupfolder (Tools - Options - FileLocations- Startup) so that it is available whenever Word is started.

Of course, it's possible to create an additional install document that copies the template to that location. If you want to try this, check out the commands
options.DefaultFilePath(wdStartupPath) to retrieve the Startupfolder and the FileCopy command to copy the addin from one location to another.
One word of caution, if you do create such an install document, note that some users might have set their security settings to high, therefor an AutoOpen macro alone won't do the trick.
If you need more help on this topic, just repost here.

Hope this helps,
regards,
Astrid

So that all can benefit from the discussion, please post all follow-ups to the newsgroup.
Visit the MVP Word FAQ site at http://www.mvps.org/word/
 

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