Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the code below and it works fine but I would like it to prompt for the
file path as each month the path changes slightly. Sub LoopOWC() Dim oFSO Dim Folder As Object Dim Files As Object Dim file As Object Application.ScreenUpdating = False Set oFSO = CreateObject("Scripting.FileSystemObject") Set Folder = oFSO.GetFolder("c:\new_files\Jan") For Each file In Folder.Files If file.Type Like "*Microsoft Excel*" Then Workbooks.Open Filename:=file.Path UploadData ActiveWorkbook.Close SaveChanges:=True End If Next file Set oFSO = Nothing Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
prompt a msg in loop code | Excel Programming | |||
Registry path for links startup prompt | Excel Programming | |||
Prompt for Save Path - Use Cell Content for File Name | Excel Programming | |||
Excel XP SP3 and linked files prompt | Excel Programming | |||
Excel prompt to save unmodified files | Excel Discussion (Misc queries) |