If someone was to try and build a pathname (in a source.doc) property, what would be the syntax ?

All I'm looking for is:

some phantom string variable declarations and how to build that pathname to a file

Thanks again and Happy NY to all

T

Do you mean creating a path for a control that when clicked, opens a Word (MSOFFICE) file?

Dim wrdApp As New WORD.Application

wrdApp.Documents.Open App.Path & "\Reports\Leave.docx"
wrdApp.WindowState = wdWindowStateMaximize
wrdApp.Visible = True

wrdApp - variable name, can be changed

Reports - folder where the file is located (this folder is also located where your VB6 project is)

Leave.docx - file name

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.