?
Solved

What sort of application should I build to process data files ?

Posted on 2014-03-13
6
Medium Priority
?
174 Views
Last Modified: 2014-03-14
Hi All,

I'm in the process of building a VBA application which will take a number of data files from different sources (.csv, .txt, Access database) and consolidate them into a single Excel worksheet. I will want to do some basic validation on each input file, depending on its source, prior to copying the data to a worksheet.

Where would you start with this ? How should I execute the VBA procedures ? From an Excel workbook itself ? If so, would you suggest a User Form interface, or a worksheet, or an event ? Or is there another way of running a VBA application ?

I'm open to ideas but my programming knowledge is limited to Excel VBA.

Regards
Toco
0
Comment
Question by:Tocogroup
[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
  • 2
  • 2
  • 2
6 Comments
 
LVL 24

Expert Comment

by:Steve
ID: 39926972
I think you answer your own question.
If your knowledge is limited to just excel VBA then that should be the application to use.
It is more than capable of what you need, so why go to the trouble of using something else.

Start with an excel workbook and use it to open the files.
A user form is likely not necessary.
It all depends on the tasks required.
0
 
LVL 46

Expert Comment

by:aikimark
ID: 39927379
1. you can pull data into a workbook
2. you can push data into a workbook
3. you can use VBA or VBScript to 'package' your coode
4. you can do basic file I/O or use ADO to treat the data sources as tables

I think that some of our recommendations might depend on what kind of validation you need to perform.
0
 

Author Comment

by:Tocogroup
ID: 39927547
Thanks Steve for your advice. It may be the most practical solution for me.

Aikimark, can you explain Pull and Push a little more please ? How would I 'package' my code ? What do you mean by 'basic file I/O ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 46

Assisted Solution

by:aikimark
aikimark earned 1000 total points
ID: 39927812
Pull and push describe the flow of data.  Code can bring data into a process (pull) or push data out to a destination (push).

Writing and testing code may accomplish the task, but eventually you will need to structure your code for best flexibility and maintenance objectives.  You will also need to distribute or install the code.  All of these determines how your lines of code are 'packaged' -- how many routines and classes and executables.

VB has some basic I/O statements that allow you to read and write files.  These statements are legacy (Open, Print, Input, Line Input, Input(), Write, Close, etc.).  Newer methods were introduced through the scripting.FileSystemObject.  In the VBScript environment, you only have the FSO methods.
0
 
LVL 24

Accepted Solution

by:
Steve earned 1000 total points
ID: 39928568
Well, I would say that you should plan your process requirements a little further.
Produce a flow chart with all inputs, outputs and processes. (who, what, where, when)
This flow chart will establish the boundaries and scope of the application.
Once you have this in place you could make it generic (remove sensitive stuff) and then post it here for a more tailored answer.
0
 

Author Closing Comment

by:Tocogroup
ID: 39928622
Thanks for your help.
It's given me something to think about and research further into.
And yes I shall revisit this site when I have scoped the project.
Regards
Toco
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

752 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