Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

File Path

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pam - 18 Apr 2006 12:54 GMT
The code below show the file path in a message box, how do I change it
to show the file path in a label on a user form?

Do I reference the label name?

I am using a command button to run it in Word 2003 XP.

Thanks

Pam

Dim fd As FileDialog
Set fd = Application.FileDialog (msoFileDialogFilePicker)
Fd.InitialFileName = \\ushou1fp003\wordp\Contracts\
Dim vrtSelectedItem As Variant
With fd
If .Show = -1 Then
For Each vrtSelectedItem In .SelectedItems
MsgBox "The path is:  " & vrtSelectedItem
    Next vrtSelectedItem
Else
End If
End With
End Sub
Tony Jollans - 18 Apr 2006 12:58 GMT
> Do I reference the label name?

The Label name would be a good place to start. And I would use the .Caption
property.

--
Enjoy,
Tony

> The code below show the file path in a message box, how do I change it
> to show the file path in a label on a user form?
[quoted text clipped - 20 lines]
> End With
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.