Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have macro (see below) which put all kind of files names in ListBox1
from specified folder Private Sub CommandButton1_Click() Me.ListBox1.Clear Dim Filename As String Dim Foldername As String Foldername = "C:\Documents and Settings\Files\" Filename = Dir(Foldername) Do Until Filename = "" Me.ListBox1.AddItem (Filename) Filename = Dir Loop End Sub How can I get files full name or path in ListBox1. For example get name like "C:\Documents and Settings\Files\Flag.pdf" instead of "Flag.pdf". I know there is some modification needed in macro above can any friend help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Split fullname into First Middle and Last | Excel Programming | |||
Citrix and FullName | Excel Programming | |||
FullName vs FullNameURLEncoded | Excel Programming | |||
ThisWorkbook.FullName - A different approach | Excel Programming | |||
ThisWorkbook.FullName | Excel Programming |