LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.vb.com,microsoft.public.vb.database,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Need to scan xls files and identify if they use macros...wanna use

Jim,

Sounds like you're going to have to combine a few methods. While I don't
have a specific idea, I suggest you start with Chip Pearson's Website on
Programming to the Visual Basic Editor (VBE) at this url:

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

You will have to open each workbook on your network and check its VBE
objects for "vbext_ct_ClassModule" and "vbext_ct_StdModule". Don't forget to
add a reference to "Microsoft Visual Basic For Applications Extensibility" in
Tools- References, and you will need to go to the Tools menu, choose Macros,
then Security, click the "Trusted Sources" tab, and put a check next to the
"Trust access to Visual Basic Project", as Mr. Pearson describes in the above
site.

Good luck.
Pflugs

"Jim Hicks" wrote:

I was given a project to scan all of the Excel files on our network and
generate a report listing the
files and wether they use Macros. I was thinking of using VB6 to scann all
dirs/subdirs...easy part.
Question: -- How do I quickly scan an excel file and determine if it
has/uses Macros using VB6.
I appreciate you taking the time to read this and any help anybody can
provide. Thanks.



 
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
How can I open files without doing a virus scan first? Mim Excel Discussion (Misc queries) 2 January 19th 08 08:35 PM
Need to scan xls files and identify if they use macros...wanna use Pflugs Excel Discussion (Misc queries) 1 June 22nd 06 08:29 PM
Need to scan xls files and identify if they use macros...wanna use martin1 Excel Discussion (Misc queries) 1 June 22nd 06 07:44 PM
Need to scan xls files and identify if they use macros...wanna use martin1 Excel Programming 1 June 22nd 06 07:44 PM
Running Virus Scan Slowing down opening files Angelina Excel Discussion (Misc queries) 2 August 15th 05 12:41 AM


All times are GMT +1. The time now is 11:26 PM.

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"