Automate Office Tasks with VEDIT
VEDIT - An Office Automation Tool
VEDIT is much more than just an "editor". It is a flexible tool that can assist with many office tasks that have nothing to do with "editing". Examples are:
- Assistant in transferring data between databases and accounting programs.
- Clean up databases, extract data from databases, perform search & replace operations on a database.
- Extract all valid email addresses from log files. Sort the email addresses and remove all duplicates.
- Extract the text (e.g. form data) from a web page, removing all HTML codes.
Here is a more specific example:
You want an e-mail list of prospective customers that have inquired about a product. Their e-mail addresses are in Eudora (tm). However, you must exclude customers that have already purchased the product. Customer e-mail addresses are in MS Access (tm).
Without VEDIT, this is a formidable job; with VEDIT, it is almost trivial. See "Example - Create E-mail list" below.
The typical approach to automation is to write complex programs in Visual Basic or C++. However, VEDIT's powerful search and replace capabilities, columnar block operations, many ready-to-use macros, and automation features can perform many tasks without any programming. Some tasks may require custom "macros"; the advantage with VEDIT is that these macros often consist of only a few search and replace commands.
VEDIT's search & replace is exceptionally powerful and fast. It supports both "pattern matching" and "regular expressions". A few search & replace commands can often perform the equivalent of a 100+ line Visual Basic or C++ program.
The following is an overview of how VEDIT can assist with the example tasks mentioned above. It is not intended to be a step-by-step guide. Hopefully you will see how VEDIT can help with your specific needs. Click here for more information about how VEDIT can automate editing and conversion tasks.
Transfer data between databases and accounting programs
Most databases and accounting programs have "export" and "import" functions, which "in theory" makes it possible to transfer data between them. However, in practice the "export" format and the "import" format are often incompatible.
For example, the export and import formats might be:
Export: James Phillips 201 Fairview Miami FL 33120 110301 Import: "110301","James","Phillips","201 Fairview","Miami","FL","33120"
A single search & replace in VEDIT using "regular expressions" can convert the "export" format to the required "import" format. You could easily create a batch file or Windows icon to fully automate the conversion.
For more complex conversions, you might use VEDIT's extensive "columnar" block operations. You can delete, insert, copy, move, fill and sort columns of data.
Working with databases
Although VEDIT cannot readily work with raw database files (other than xBASE), most database programs let you export a table as a text file which VEDIT can then manipulate. Here are some examples.
- You may find that some phone numbers in your database are entered as
(555) 555-5555 while others are entered as 555-555-5555 or
1-555-555-555. Lets say you need them all in one format.
- Export the table to a text file and open it in VEDIT.
- Two search & replace commands will correct the telephone numbers. Save the file.
- Import the text file and use it to replace the existing table.
- You may find that your database has duplicate records that you want
to delete.
- Export the table to a text file and open it in VEDIT.
- Sort the file based on the field which indicates the duplicate records.
- A search & replace with "regular expressions" can delete the duplicated records (after sorting). Save the file.
- Import the text file and use it to replace the existing table.
This "export", "fix with VEDIT" and "import" technique can be used with any database manipulations that are difficult or impossible to perform with the database program.
Working with e-mail addresses
VEDIT includes several ready-to-run macros that can really help when working with e-mail addresses.
E-EMAIL.VDM
Extract all "From:" and "Reply-to:" e-mail addresses from an e-mail archive file, sort them and remove duplicates. Works well with Eudora .MBX files.
E-XTRACT.VDM
Extract all e-mail addresses from a data or log file, sortthem and remove duplicates.
EXTRACT.VDM
Extract all records (lines) from a file which contain a specified search string. You can even automatically extract records (lines) from entire groups of files. For example, you could extract all "@aol.com" addresses.
This macro also has many database uses and is available from the menu function {MISC, More macros, Extract}.
REM-LINE.VDM
Remove all lines in a file which contain a string listed in a file of "remove strings". Works well for comparing two lists of items (e.g. email addresses) - creates a file of the different items and a file of the common items. The next example uses this flexible macro.
Example - Create E-mail list
Consider this task:
You want an e-mail list of prospective customers that have inquired about a product. Their e-mail addresses are in Eudora (tm). However, you must exclude customers that have already purchased the product. Customer e-mail addresses are in MS Access (tm).
Here is an overview of the steps needed to perform this task.
- Inside Eudora, create a temporary mail folder, e.g "Prospects". Copy all prospective customer email messages to "Prospects". (You can copy by holding down the <Shift> key while dragging.)
- From VEDIT, run the E-EMAIL.VDM macro. At the prompt for the filename, enter the full pathname to the file "prospects.mbx" in the Eudora folder. At the prompt for the destination filename, enter e.g. "prospects.txt". The macro will extract all the email address, remove duplicates, sort them, and save them in prospects.txt.
- From MS Access, export the table containing the customer email addresses. Export only the email address field. Save the email addresses in a file, e.g. "customer.txt". If you have trouble exporting only the email addresses, use the VEDIT macro E-XTRACT.VDM to extract the email addresses from the export file.
- From VEDIT, run the supplied REM-LINE.VDM macro. For the source filename, enter the pathname to "prospects.txt". For the remove list filename, enter "customer.txt". For the destination filename, enter e.g. "mailing.txt". For the matching filename, enter e.g. "match.txt". The macro will remove from prospects.txt any email addresses which are also in customer.txt. It saves the resulting file as mailing.txt. The file match.txt will contain the email addresses of (recent) customers that are on the prospects list. In other words: mailing.txt + match.txt = prospects.txt
When completed, you will have a list of email addresses in the file "mailing.txt" which consists of everyone that has inquired about a product, but hasn't purchased it.
(You can then use the mail merge capabilities in MS Word to send a follow-up letter, special offer, etc. to your prospects.)
Summary
Hopefully this has given you an overview of how VEDIT can help you with your particular office tasks. Many tasks can even be fully automated. Click here for more information about how VEDIT can automate editing and conversion tasks.
Please contact us if you have any questions about how VEDIT might be able to help with your specific needs.
Please Contact Us With Any Sales or Technical Questions:
Mail:
Greenview Data, Inc.
PO Box 1586
Ann Arbor, MI 48106 USA
E-mail:
or
Telephone (Sales): In US and Canada call Toll-Free 1.800.458.3348
International: 734.426.7500
Fax: 734.426.7510
