I am currently using Microsoft Excel 2002 SP3.
I have a directory that has about ten workbooks in it. Currently I use the same macro on all ten workbooks. What I would like to do is open one workbook and run the macro on the open one and than on the remaining nine and than save the results. Is this possible?
I copied this loop from the help files. The name of my macro is FormatData. I couldn't find any property that would run a macro. Any help would be appreciated.
I have a directory that has about ten workbooks in it. Currently I use the same macro on all ten workbooks. What I would like to do is open one workbook and run the macro on the open one and than on the remaining nine and than save the results. Is this possible?
I copied this loop from the help files. The name of my macro is FormatData. I couldn't find any property that would run a macro. Any help would be appreciated.
Code:
For Each w In Workbooks
If w.Name <> ThisWorkbook.Name Then
w.Close savechanges:=True
End If
Next w