Solved

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

Posted on 2014-03-13
6
171 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 45

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 45

Assisted Solution

by:aikimark
aikimark earned 250 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 250 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

Industry Leaders: 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!

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

695 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