ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding Excel Macros (https://www.excelbanter.com/excel-programming/281157-finding-excel-macros.html)

Bill[_19_]

Finding Excel Macros
 
I have been tasked with finding all the Excel worksheets
on a given
server that contain macros.... Does anyone know an easy
way of doing
this?


Tom Ogilvy

Finding Excel Macros
 
You would need to loop through all the worksheets, open them, and examine
them for macros.

Look at help on the filesearch object to see code to loop through the files

See Chip Pearson's site for code to find code:

http://www.cpearson.com/excel/vbe.htm

I don't think it has that specific application, but it has code close
enought that you should be able to adapt it.

--
Regards,
Tom Ogilvy


Bill wrote in message
...
I have been tasked with finding all the Excel worksheets
on a given
server that contain macros.... Does anyone know an easy
way of doing
this?





All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com