![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Hello everyone,
I have the following problem: I´m trying to analyze several measurements in one excel Worksheet. Therefor I did several measurements, which resultet in a single .txt (tabulator seperated) file for each measurement. If I drag and drop (copy paste works too) the .txt in an excel sheet, everything works fine but it is a lot of work for the amount of different measurements, so I would like to automatize the process. The xls. file consists of the main sheet with all the diagrams and statistics which use the data from the measurements that are stored in seperate sheets in the same .xls file. My main idea is, that on the overview sheet I provide the name of the sheet which should contain the measurement and the file path of the corresponding .txt file of that measurement and excel should automatically load the data from that .txt file in that sheet, as if I had done it by hand via drag and drop. How can I realize that? In the picture I have showed the basic structure of the file system and the .xls with the different sheets for each measurement .txt file. |
#2
|
||||
|
||||
![]()
Excel can't 'automatically' load files via formulae; you'd need a macro to automate the process. Such a macro could be made to work with the text you have in the columns, though you really don't need anything more than the text file's name (i.e. without the path & extension on every line) and you'd also need to put some code into the macro that would specify where on each sheet the data are to do.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
different sheets, file path, import .txt file |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
tiwas | Excel | 1 | 10-07-2014 04:57 AM |
Combine Data From 2 Sheets into a new sheet | bremen22 | Excel | 1 | 09-11-2013 12:59 PM |
![]() |
emilypage | Word | 3 | 11-09-2012 01:11 AM |
Loading Image Files Into WORD Table | cbjroms | Word | 0 | 10-19-2011 10:10 AM |
![]() |
diegogeid | Excel | 2 | 09-30-2010 12:19 AM |