Solved

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

Posted on 2014-03-13
6
167 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

803 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