Results 1 to 9 of 9

displaying a filename in TextBox

Threaded View

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 365 Subscription
    Posts
    353

    displaying a filename in TextBox

    Hi

    I want to use this code to display only the filename + extension in the TextBox1. It currently shows the full path

    With Application.FileDialog(msoFileDialogFilePicker)
        .Title = "Please select file"
        .Show
        If .SelectedItems.Count = 0 Then
            Else
            TextBox1.Value = .SelectedItems(1)
        End If
    End With
    Last edited by CobraLAD; 04-21-2009 at 12:19 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1