Did you meanDim FSO, DESTFILE
For N = 0 To MoveList.ListCount - 1
Set FSO = CreateObject("Scripting.FileSystemObject")
DESTFILE = (App.Path & "\" & MoveList.List(N))
FSO.MoveFile "F:\Audio", DESTFILE
Next
That doesn't work
As far as I know it is individually moving the files, it starts at the top of the list, and performs the command for each line in the list.
I removed the brackets around the source and destination of the file, this remove the error about the comma, however it still comes up with an error saying...
Is there some sort of patch required for this??
Every thing I try doesn't work.
The file that I am trying to move depends on what is in a list box. Basically there is a lot of files that need to be moved. What I have tried so far is Dim FSO, FileSet
For N = 0 To MoveList.ListCount - 1...
Is there a way to move a file from one folder to another??
I tried using shell("move " & FilenameandPath) but the filename has to be very basic. The files that I want to move contain -'s and a few other symbols.
OK this is my whole code for that buttonPrivate Sub Command1_Click()
'Copy selected files to the other ListBox
For N = 0 To List1.ListCount - 1
If List1.Selected(N) = True Then
List2.AddItem List1.List(N)
End If
Next
'Remove selected files from original ListBox
For N = 0 To...
Did you meanFor N = 0 To List1.ListCount - 1
If List1.Selected(N) = True Then
List1(Index).RemoveItem List1(Index).ListIndex
End If
N = N + 1
Next??
This works for the first selected item in the list, but not any of the others, or on the second time the button is clicked...
Hi, I am having trouble with RemoveItem.
This is what I have so far:
For N = 0 To List1.ListCount - 1
If List1.Selected(N) = True Then
List1.RemoveItem List1.ListIndex
End If
Next
I have also tried:
For N = 0 To List1.ListCount - 1
If List1.Selected(N) = True Then...
Sorry if this question has been asked before, but I was unable to find it.
I have created a help file, but i don't know how to open it so that the user can see it.
Hi, I have a list box, called List1. This list box is filled with information gathered from a file, called source.txt.
My problem is that i want to edit a piece of data without messing up the order. My solution would be to copy all of the data above the selected item to one file, copy all of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.