index > Visual Basic for Applications (VBA) > find current path in VBA macro word

find current path in VBA macro word


I have a macro in word.
In this macro I have need of a function that find the current path.
issarto
try CurDir
blackmamba

Try this

Application.path which return the current working path.

check out

msgbox application.path




subramanian
Subbusoft
To get the activedocument path, use
------
Msgbox Activedocument.Path
------
-bvr
bvravi
reply 4

You can use google to search for other answers

 

More Articles

• Doing a date out(radio button)twice where i want the 2nd time to ...
• How to create a script for creation of dictionary in visual basic...
• Defining objects within a cell range
• Sort table based on array
• Run-time error 13, "Type Mismatch" in Excel application
• Code erroring out.
• Challenge writing a macro for setting Mergefields properties
• VBA and Excel Deleting Worksheets without user interaction
• Macro to sort an Excel column
• personalized command bar disappears when minimizing excel
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• VBA 6.4 now available on MSDN Subscription
• Text file search, return data from line
• Excel, fullscreen, taskbar
• Openening an Excel file from within Proj
• xp style to vba forms
• Excessive Lag with VBA APP
• Office2003 VBA 6.3 Help files not workin
• How to install MS Jet 4.0 OLE DB?
• Application.Tasks contains 16 tasks for
• How Can Write in Data Grid
• Disable events in userform
• VBA WORKSHEET
• How to write a 'Find function' code in V
• Save Each page of a Word merge as a sepe
• Accessing Win32 API in VB script(.VBS fi

Hot Articles

• Run SQL Server 2005 DTS Package from MS
• Office 97 / Windows 2000 Compatability
• ned help with excel
• form-Subform
• dbgrid link listbox help !!!
• Getting Images embedded in Word
• Excel DDE Server
• How do I disable the Windows Toolbar?
• DBGrid and MSFlexGrid not working in VBA
• Question about ADO and Access
• Is there a way to select..
• PPT VBA - Searching a file that is not o
• VBA Excel/Oracle query and run-time erro
• Windows template on a Mac
• Compatability of VBA 6.3 and Visual Stud

Recommend Articles

• read line from table cell for vba in ms
• Browsing Selection.InlineShapes forces W
• Executing an insert statement in VBA
• VBA: read/write chinese words
• MS-Excel 2000 Macro to Get OUT parameter
• external file data
• Need help with a macro (not sure if corr
• Urgent help regarding line chart thru Ex
• how to close a userform in workbooks.ope
• Reading From excel spreadsheet cell
• Using ApplyCustomType with variable numb
• excel vba
• VB MACRO IN SHARED WORKBOOK(EXCEL)
• Excel, Forms, and Charts
• Help with looping process excel macro