Search : in
By :

VBA script / macro in excel

reddishpink, on Nov 8, 2009 10:20:57 pm GMT 
 Report this message to moderators

Hello,
Hello everyone! I am newbie with VBA Script (i have no knowledge at all about VBA before but i have a project which requires me to use VBA script). I need help to solve the problem i've got here..

So the project i have is like this..
My university has this photovoltaic modules , which record solar/sun radiation each minute everyday for the whole year. The data is saved per day in a .txt file , which means for one year i will have 365 .txt files. Each file, when opened in Excel , has 23 columns, and the only column that i want to use is column A(minute) and column X(which has the value of sun radiation).. Other columns can be ignored.

What i have to do now is, i have to calculate how many minutes for the whole year, that the sun gives the radiation with values of 200 W/m2 , 300W/m2, 400W/m2 and so on and transfer the whole thing into a graph with Solar Radiation in X-axes, and Minutes at Y-axes.

My problem now here, the lecturer requires me to find a way, where i can import all my 365 Files all at one time with just a click and do all the calculation automatically( meaning, i have to import from each file only these 2 collumns, from all 365 files at the same time, putting it in a new sheet).. because the only solution i have now is, to do the calculation per day and do it 365 times for the whole year.

And he suggested me to use DIAdem software because this program is more suitable for macro data, and again, the software is totally NEW to me. i've called National Instruments(the company which produces this software) and they gave me a hint on how to solve this :

Call ASCIIConfigLoad("C:\Test.stp")
Call ASCIILoad(UseFileList,0)

and the function above is to used inside a loop, since i need to import the data all at the same time..

But i have no idea what this is and how to begin / end the script.
I need help pleaseeeee.. Your help is very very much appreciated!!!! =)

Best answers for « VBA script / macro in excel » in :
[VBA: VB6] Using excel from another application Show [VBA: VB6] Using excel from another application Here is a little routine to call Excel from VB6 or another Office application. Paste in a general module (eg Module1) In VBA>> Insert>> Module and paste in the window ... In VB6>>...
Excel – Macro to detect and hide blank rows ShowExcel – Macro to detect and hide blank rows Issue Solution Note Issue I want a macro to unhide about 20 blank rows copy values into the top row then hide the remaining rows (some cells have fill though) then the next time it will...
Excel tips : How to insert date in a cell ShowExcel tips : How to insert date in a cell Below are some tips on how to insert date and time in an excel cell for a specific purpose:- To insert current date, press CTRL + ; in the chosen cell. To insert current time, press CTRL+...
Adding a VBA CommandButton with its respective the code ShowAdding a VBA CommandButton with its respective the code Paste these two sub in a general module (Module1 for example). Sub CreateButton() Dim Obj As Object Dim Code As String Sheets("Sheet1").Select 'create button ...
Environment variables ShowEnvironment variables An environment variable is a dynamic value loaded into the memory that can be used by several processes operating simultaneously. On most operating systems, the location of some libraries or of the main system executables may...
Worksheet - Cells ShowThe Concept of a Cell A "cell" is the intersection between a line (horizontal) and a column (vertical) on a worksheet. Thus, the name of the line combined with the name of the column gives the cell's coordinates (the term address is sometimes also...