Hello,
As I have recently been notified that I will need to learn some VBA coding for a potential employment opportunity, I've been pretty much scrambling to figure out some important features I am required to know. Your assistance is greatly appreciated.
What I am trying to do is have a macro (activated by one of those custom buttons we can create) request the user to select a file. This I was able to do as I found a straightforward script on the internet.
My problem is...I want to then have the rest of the macro take that opened file and format it (i.e. tabulate the data on one worksheet, generate some plots on a second and state averages/max/mins/etc on a third worksheet.
I was able to do the second half of the macro using the Macro Recorder - all I did was record me opening the file (a .dat file to be precise), formatting it appropriately, adding the table details, plots and voila...it could play it all back. Of course at that point, the macro only ran for that specific file. I want to provide the user the ability to pick any .dat file in our directory before having the macro spit out a legible display of the information stored in the .dat file.
Again...I'm going to be reading into VBA/macro writing throughout the week. I have experience with C++, basic stuff...so I do understand the general UI with VBA and the basic syntax rules.
Any help is well appreciated. Thank you.
Jacek
As I have recently been notified that I will need to learn some VBA coding for a potential employment opportunity, I've been pretty much scrambling to figure out some important features I am required to know. Your assistance is greatly appreciated.
What I am trying to do is have a macro (activated by one of those custom buttons we can create) request the user to select a file. This I was able to do as I found a straightforward script on the internet.
My problem is...I want to then have the rest of the macro take that opened file and format it (i.e. tabulate the data on one worksheet, generate some plots on a second and state averages/max/mins/etc on a third worksheet.
I was able to do the second half of the macro using the Macro Recorder - all I did was record me opening the file (a .dat file to be precise), formatting it appropriately, adding the table details, plots and voila...it could play it all back. Of course at that point, the macro only ran for that specific file. I want to provide the user the ability to pick any .dat file in our directory before having the macro spit out a legible display of the information stored in the .dat file.
Again...I'm going to be reading into VBA/macro writing throughout the week. I have experience with C++, basic stuff...so I do understand the general UI with VBA and the basic syntax rules.
Any help is well appreciated. Thank you.
Jacek