Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,818 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,081 people online right now. Registration is fast and FREE... Join Now!




What MOSS Document Library Am I In?

 
Reply to this topicStart new topic

What MOSS Document Library Am I In?, Technical VBA Question

peytonking
18 Aug, 2008 - 02:56 PM
Post #1

New D.I.C Head
*

Joined: 3 Sep, 2006
Posts: 4


My Contributions
I am trying to determine what SharePoint document library I am in from within VBA that is contained in the template set up for the document library. As to why, it is so I can take actions based on the document library and thereby have one template instead of dozens each with a different URL inside them.

Despite the fact that the template is stored in the Forms folder of the Document Library, I do not get the real name when I go after ActiveDocument.AttachedTemplate


When I try to get it from the save document dialog, dlgSaveAs.InitialFileName
I do not get the SharePoint path, but instead get...
C:\Documents and Settings\kingpr2\My Documents\

Any suggestions other than not to use a template or not to use VBA would be appreciated...


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 02:59PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month