Solved

Extracting all Msgbox lines from the project/projectgroup

Posted on 2003-11-28
3
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

622 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