Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    6

    Unanswered: Paths To Documents

    Hi,
    Im trying to put the full path of a document as selected from a FileListBox into a TextBox. The code below does not show the file name.
    Any help would be great!
    Thanks


    Private Sub File1_Click()
    txtDocumentPath = File1.Path
    End Sub

  2. #2
    Join Date
    Jul 2001
    Location
    NC
    Posts
    102
    quick demo:
    1. create a form with listbox (list1), textbox (text1), a Button (cmdMove), and one variable (dataSel).
    2. select item in listbox, click move button, and data displays in textbox.

    Private dataSel As String

    Private Sub cmdMove_Click()
    Text1.Text = dataSel
    End Sub

    Private Sub List1_Click()
    dataSel = List1.Text
    End Sub

    Private Sub form_load()
    dataSel = ""
    text1.text = ""
    List1.clear
    List1.AddItem "A"
    List1.AddItem "B"
    List1.AddItem "C"
    End Sub

Posting Permissions

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