Syntax for AutoCad File Type *.dwg

  • Thread starter Thread starter Benjamin
  • Start date Start date
B

Benjamin

I want to find the syntax for AutoCad file Type *.dwg
That way when my excel file lister will only bring up autocad files into the
spreadsheet.

Please help.

With Application.FileSearch
.LookIn = strSourceFolder 'look in the folder browsed to
.FileType = msoFileTypeAllFiles 'get all files
.SearchSubFolders = False 'don't search sub directories
.Execute 'run the search
 
just add another line, you're there already

.FileName = "*.dwg"


Benjamin said:
I want to find the syntax for AutoCad file Type *.dwg
That way when my excel file lister will only bring up autocad files into
the
spreadsheet.

Please help.

With Application.FileSearch
.LookIn = strSourceFolder 'look in the folder browsed to
.FileType = msoFileTypeAllFiles 'get all files
.SearchSubFolders = False 'don't search sub directories
.FileName = "*.dwg"
 
Back
Top