Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Guys,
I had a Macro which was made using Excel 2003, which looked up Excel files in a folder, formatted them, saved them, and then repeated the process for every excel file in the folder. The Problem is that the I.T in my company upgraded me to Office 2007 today, and now I cannot get the Loop to work. The excel files that the macro is trying to open are saved as .xls. Below is the coding I've used (which was again created using Ron's tips). I'd appreciate if someone could let me know what I'm doing wrong since I have to create these formatted excel files (around 450 of them) by end of day tomorrow. Dim oFSO Dim Folder As Object Dim Files As Object Dim file As Object Set oFSO = CreateObject("Scripting.FileSystemObject") Set Folder = oFSO.GetFolder("Folder location") For Each file In Folder.Files If file.Type Like "*Microsoft Excel*" Then Workbooks.Open Filename:=file.Path *complete formatting* End If Next file Set oFSO = Nothing Thanks Guys, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
F2 Key not working in Excel 2007 | Excel Discussion (Misc queries) | |||
Pivot in excel 2003 is not working when open in excel 2007 | Excel Worksheet Functions | |||
Chart allignment issue in 2007 but in 2003 its working fine | Charts and Charting in Excel | |||
Formulas in 2007 not working in 2003 | Excel Worksheet Functions | |||
Formula not working in excel 2007 | Excel Discussion (Misc queries) |