You not copy all the code
Download the example workbook and test it
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"Sheldon Potolsky" <(E-Mail Removed)> wrote in message news:00941541-b389-44df-8081-(E-Mail Removed)...
Hi Ron. I tried your code (below) but got:
Compile error: Sub or Function not defined (with Get_File_Names
highlighted)
Am I missing something?
Thanks, Sheldon
*****************************
Sub RDB_Merge_Data()
Dim myFiles As Variant
Dim myCountOfFiles As Long
myCountOfFiles = Get_File_Names( _
MyPath:="C:\Users\Ron\test", _
Subfolders:=False, _
ExtStr:="*.xl*", _
myReturnedFiles:=myFiles)
If myCountOfFiles = 0 Then
MsgBox "No files that match the ExtStr in this folder"
Exit Sub
End If
Get_Data _
FileNameInA:=True, _
PasteAsValues:=True, _
SourceShName:="", _
SourceShIndex:=1, _
SourceRng:="A1:G1", _
StartCell:="", _
myReturnedFiles:=myFiles
End Sub
On May 9, 10:16 am, "Ron de Bruin" <rondebr...@kabelfoon.nl> wrote:
> See alsohttp://www.rondebruin.nl/copy3.htm
>
> --
>
> Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm
>
>
>
> "Sheldon Potolsky" <SHPsalm...@aol.com> wrote in messagenews:eca5c476-6e00-4cdb-9d06-(E-Mail Removed)...
> > Hello. I would like to open up a new spreadsheet and append rows 2 -
> > EOF from six other spreadsheets into that new one, be prompted for the
> > name to save it with, then save and quit. Would someone be kind
> > enough to offer some VBA code to do this with?
> > Thank you,
> > Sheldon Potolsky- Hide quoted text -
>
> - Hide quoted text -