from vba to vsto

L

Lina

Hi
Im trying to convert my vba code to vb.net and have a problem. I have a
function that returns the default file path for the usertemplates, another
one for the workgrouptemplates. I need to know both because I want to create
documents based on templates that are placed in theese diredtions.

vba
getTemplateFilePath =
Application.Options.DefaultFilePath(wdUserTemplatesPath) & "\"

I have found the Globals.ThisAddIn.Application.Options.DefaultFilePath but I
dont understand how I can specify to make it return the usertemplatesPath?
does anyone know?
 

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