LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Extract macro text out of Excel (Newbie)

Hello

Sorry if this is a FAQ...

I am currently in a bind. The organisation I am working for has thousands
of excel sheets scattered around the business. Unfortunately around 10% of
them include VBA that uses ADO to connect to a database that is being
decommissioned.

Is there a property on the Excel COM object or VSTO that can be used so that
I can determine if the file includes macros? Even better would be a method
that can extract the macro text out of the excel file so I can use a regular
expression to search for ADODB.

At the moment I am planning on writing a tool (running under an account with
read only file access) that will recursively loop over all directories within
the organisation and find all the excel sheets. I want to then do a
preliminary check to see if the file
1) Contains Macros
2) Contains VBA
3) References other excel sheets or xla files that do 1 or 2.



Thanks

--
David Ross

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Extract Text From Word Table Into Excel? V. Hatherley Excel Discussion (Misc queries) 1 August 27th 06 04:12 PM
Please help a newbie with an excel vba macro relating to comments. zulfer7 Excel Discussion (Misc queries) 8 May 19th 06 10:40 PM
excel macro to extract data from one worksheet to many spreadsheets [email protected] Excel Programming 1 April 9th 06 09:34 PM
How do I extract text info from 1 excel worksheet into many? DG Excel Discussion (Misc queries) 1 November 22nd 05 11:11 AM
Newbie - populate (macro) GUI from Excel cells Bill Burke Excel Programming 2 April 3rd 04 07:30 AM


All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"