Hi
I have a master workbook in which I want to enter a line of competitor information from the many (Excel based) entry forms we receive. The entry forms come in having been saved under all different Team names.
The first row of a sheet within the entry form contains several columns of information that I want to transfer to the Master Sheet.
I have some code that copies the row from the entry form and successfully pastes it in to the correct sheet on the master workbook.
[Code]
Public Sub copy_wb()
Dim copy_from As Range
Dim copy_to As Range
Set copy_from = Workbooks(Test_Form).Worksheets(Test_Entry).UsedRange
Set copy_to = Workbooks(MASTER_ENTRY).Worksheets(TEST_PASTE).Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
copy_from.Copy Destination:=copy_to
Application.CutCopyMode = False
End Sub
[\Code]
However, my problem is that the entry forms that I'm copying the information out of will not have consistent names or maybe even paths. Also, there may be many (40 or 50) entry forms in a folder at the end of a path.
If I have the Master open and open one of the entry forms would it be possible to make the copy_from find and copy from the entry form that is open on the desktop? i.e something along the lines of Copy_from Workbooks 1 = Desktop."*" ??
Not holding my breath, but it would be really useful if there is a way of doing this!
Thanks
Bookmarks