Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've already visited these sites and they are very helpful. But in this case,
this customer want an external solution to manage his excel files because it was a one shot deal. So I've built a vbscript in an hta to do this. But thank's for your suggestion I appreciate. "Norman Jones" wrote: Hi Chris, To cycle through the files, see VBA help on the Dir function or adapt Ron de Bruin's sample code at: http://www.rondebruin.nl/copy3.htm To delete, amend or insert code, see Chip Pearson's page on programming to the VBE at: http://www.cpearson.com/excel/vbe.htm I would suggest, however, that rather than replacing the existing code in each of the 2000 workbooks, you should consider creating a single Addin and making the Addin available to all appropriate users. In this way, future editing could be limited to a single file, --- Regards, Norman "ChrisSaw" wrote in message ... Hi all, Let say that I have over 2000 old excel files in one folder. Each of these excel files contain one macro and this is the same macro in all excel files. I want to be able to create a script that will open each file one by one, delete or overwrite the current macro by a new one. All my code to open excel files is done and working. My problem is that I don't know how to retrieve the current macro once the file is open. Neither how to overwrite it. Any help will be greatly appreciated. Christian |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
data from one workbook automatically entered into another workboo. | Excel Discussion (Misc queries) | |||
transfer formulas/formats from 2007 workbook to a new 2008 workboo | Excel Worksheet Functions | |||
How to find/replace all of the names of files in EXCEL workbook. | Excel Discussion (Misc queries) | |||
Tranferring names defined in one excel workbook to another workboo | Excel Discussion (Misc queries) | |||
Can you code a macro so it runs multiple times in the same workboo | Excel Discussion (Misc queries) |