Compile Error

F

fgwiii

Can someone please tell me why this is getting a compile error? I am running
Excel 2003.

<Sub RDB_Copy_Sheet()
Dim myFiles As Variant
Dim myCountOfFiles As Long

myCountOfFiles = Get_File_Names( _
MyPath:="C:\Documents and Settings\W_f\My
Documents\Copy of 20090713", _
Subfolders:=True, _
ExtStr:="*_20090713_Reviewed.xl*", _
myReturnedFiles:=myFiles)

If myCountOfFiles = 0 Then
MsgBox "No files that match the ExtStr in this folder"
Exit Sub
End If

Get_Sheet _
PasteAsValues:=True, _
SourceShName:="", _
SourceShIndex:=1, _
myReturnedFiles:=myFiles

End Sub >

Thanks
 
D

Dave Peterson

Which line caused the error?

Did you remember to copy all the functions associated with this procedure
(get_file_names and Get_Sheet).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top