Solved

Extracting all Msgbox lines from the project/projectgroup

Posted on 2003-11-28
3
204 Views
Last Modified: 2012-05-04
Hello,

I have a sizable project/project group (with many forms,modules,usercontrols)....What I need to do is extract all the Msgbox statements from all the source componenets of this project/projectgroup and write to a notepad file.

How can I do this?

Thanks
Kamur
0
Comment
Question by:kamur
3 Comments
 
LVL 9

Accepted Solution

by:
dancebert earned 100 total points
ID: 9838909
Copy all the source code files into a single directory

Use the FileSystemObject to open a file called Results.txt

For each file in the directory:
    Use the FileSystemObject to open the file
    For each line in the file:
        If InStr("Msgbox") then
            Output this line to Results.txt, followed by a vbCrLf
        End if
    Next
Next
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9839205
Use "Find in files" functions available in VC++.
0
 

Author Comment

by:kamur
ID: 9840605
thanks dancebert. that was easy, i was thinking i would have to search in binary files also. regards.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now