I need help with a pick them worksheet

Status
Not open for further replies.
L

Legacy 420921

Guest
HERE IS FILE
s!AnJwxxiz0Ezpg8oUm3VqxMg8yD50Lg
https://1drv.ms/x/s!AnJwxxiz0Ezpg8d44doit5nmxCco9A?e=eQrtdJ


HERE PICTURES https://1drv.ms/u/s!AnJwxxiz0Ezpg8oVBr3hJUzW5V6eeQ?e=Scigt5

s!AnJwxxiz0Ezpg8oS6XsH2n6o1iI3nQ
s!AnJwxxiz0Ezpg8oTxs3a7C0d_qjqrg
 
Last edited by a moderator:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
deleted -- requirements are not clear to me.
 
Last edited:
Upvote 0
Sub findfileinfolder()


Call CountFiles


End Sub


Private Function CountFiles()
Dim strDirectory As String, strDestFolder As String, strExt As String, cell As Range


strDirectory = InputBox("pl inter path for serch folder")
strDestFolder = InputBox("pl inter path for output folder")

Dim myfilesystemobject As Object
Dim myfiles As Object
Dim myfile As Object
Dim rng As Range
Dim Compld As Range

Set myfilesystemobject = CreateObject("Scripting.FileSystemObject")
Set myfiles = myfilesystemobject.GetFolder(strDirectory).Files

For Each myfile In myfiles

Range("B1").ClearContents
Range("B1").Value = myfile.Name

Set Compld = Range("A:A").Find(what:=Range("B1").Value, LookIn:=xlValues, lookat:=xlWhole)
If Not Compld Is Nothing Then
'Stop
With myfile
.Copy strDestFolder & "" & myfile.Name
End With
Else
End If

Next myfile

Set rng = Nothing
Set myfiles = Nothing
Set myfilesystemobject = Nothing
End Function
 
Upvote 0
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please provide the cross post link(s) as per the rules.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,567
Messages
6,120,268
Members
448,953
Latest member
Dutchie_1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top