Vba help - import data from multiple .txt files into 1 worksheet
-
, I am just learning VBA/Macros, and I am trying to create a macro that will import data from multiple .txt files (all located in the same directory) into a single worksheet. All of the data files are formatted the same, but with different data. Basically, each file contains 86 lines of fluff (dates/times/parameters that I do not need to import), followed by lines that contain 2 columns of tab-delimited data until the EOF. The first column is the Wavelength data, and the second column contains Absorbance data. If needed, I could send you an example data file. In the end, I want myfile to be a table, in which the first column is the Wavelength data (which will be the same in all .txt files), followed by columns that contain a header (the filename of the .txt file) and the absorbance data from that .txt file (one column per file after the initial wavelength column). For example, Filename1 Filename 2 ETC(for all files) Wavelength Absorbance Absorbance 850 3 0.04 849 5 0.05 848 4 0.03 847 5 0.05 846 4 0.04 ETC(for all wavelengths) Any assistance would be greatly appreciated... Sarah
-
Answer:
Sarah, Please send two or three sample files to include version ofand the contents of this posting I need to understand if the wavelength entries will be the same in each file or if I have to search to find where to place the absorbance data. Two or three files should answer that. Thanks
Miningco.com Visit the source
Related Q & A:
- How to merge multiple CSV files into a single CSV file?Best solution by solveyourtech.com
- How do I upload multiple files into a folder?Best solution by Yahoo! Answers
- How do you get multiple email addresses on 1 computer?Best solution by Yahoo! Answers
- Help with law of multiple proportions.Best solution by Yahoo! Answers
- How do you multiple 1 2/3 by 3 1/8?Best solution by themathpage.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.