Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's the general idea:
Sub OpenUserSelectedFiles() Dim i As Integer Dim filearray As Variant filearray = Application.GetOpenFilename( _ Title:="Select the files to process", MultiSelect:=True) If IsArray(filearray) Then For i = LBound(filearray) To UBound(filearray) Workbooks.Open filearray(i) 'Call your macro here ActiveWorkbook.Close False Next i Else: MsgBox "You clicked cancel" End If End Sub HTH, Bernie MS Excel MVP "SVTman74" wrote in message ... Open a file do a macro ( made) and open next succesive file File name yyyy-mm-ddxxxx.csv <--- the date is the creation date. can I have excel run the macro to auto matically open first file in dir run its parse and save ( this is done) THEN open the next file and continue? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open Excel file from VB and open MACRO | Excel Discussion (Misc queries) | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
can I open a excel file made on a XLcomp W/A vistacomp. MSWord? | Excel Discussion (Misc queries) | |||
Automate open file, update links, run macro, close and save file | Excel Programming |