Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The code below is used to select files which will then be zipped up and saved
to a location. I am trying to automate the process completly to avoid the users missing files in their selection process. Since I know that the files I want are excel, I thought I could use the Dir command to return a list of the files just like i get inthe immediate window. Any ideas or direction? FileNameXls = Dir("\\CCT75-F3-FIL03\GLOBALSHARE01\PMD PMO\F05 Files\Monthly-Project LE\02+10 Post Act Projects\Project over $1MM\CIS\*.xls") 'Application.GetOpenFilename(filefilter:="Excel Files, *.xls", _ MultiSelect:=True) If IsArray(FileNameXls) = False Then 'do nothing Else NameList = "" For iCtr = LBound(FileNameXls) To UBound(FileNameXls) NameList = NameList & " " & Chr(34) & FileNameXls(iCtr) & Chr(34) vArr = Split97(FileNameXls(iCtr), "\") sFileNameXls = vArr(UBound(vArr)) If bIsBookOpen(sFileNameXls) Then MsgBox "You can't zip a file that is open!" & vbLf & _ "Please close: " & FileNameXls(iCtr) Exit Sub End If Next iCtr |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding up with array formula | Excel Worksheet Functions | |||
adding cells within an array | Excel Worksheet Functions | |||
Adding to an array | Excel Programming | |||
adding Tiff files to the list of image files | Excel Programming | |||
Adding an Array | Excel Programming |