Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to build build a macro that automatically imports

Hi,

I want to build a macro that imports all the txt files that are placed
in a specified directory. The text files are all the same, importing
from colomn 6 and onwards. The data from the files must be placed under
eachother.

how to do it?

problem#2:I want to calculate with the data from the text files, how do
i make excel arrange all the data that relates to a specific value.
example:
name points
Fred (textfile#1) 12
Ralf (textfile#1) 14
Guv (textfile#1) 11
Fred (textfile#2) 24
Ralf (textfile#2) 24
Guv (textfile#2) 88
Fred (textfile#3) 27
Ralf (textfile#3) 14
Guv (textfile#3) 19

I want excel to show this data as:
Fred 1 12
Fred 2 24
Fred 3 27
Fred total: 63
Fred average: 21

the same for Ralf en Guv....

any suggestions?

Thanks in advance!


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default How to build build a macro that automatically imports

Pedro,

I need to know how you write data to text files to show
You how read it and put it to Excel.


-----Original Message-----
Hi,

I want to build a macro that imports all the txt files

that are placed
in a specified directory. The text files are all the

same, importing
from colomn 6 and onwards. The data from the files must

be placed under
eachother.

how to do it?

problem#2:I want to calculate with the data from the text

files, how do
i make excel arrange all the data that relates to a

specific value.
example:
name points
Fred (textfile#1) 12
Ralf (textfile#1) 14
Guv (textfile#1) 11
Fred (textfile#2) 24
Ralf (textfile#2) 24
Guv (textfile#2) 88
Fred (textfile#3) 27
Ralf (textfile#3) 14
Guv (textfile#3) 19

I want excel to show this data as:
Fred 1 12
Fred 2 24
Fred 3 27
Fred total: 63
Fred average: 21

the same for Ralf en Guv....

any suggestions?

Thanks in advance!


---
Message posted from http://www.ExcelForum.com/

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to build table Victoria612 Excel Worksheet Functions 0 May 27th 10 10:39 PM
Macro to build table Victoria612 Excel Worksheet Functions 1 May 27th 10 09:50 PM
How do I build this Macro? Omakbob Excel Discussion (Misc queries) 4 September 28th 05 09:26 PM
Can I build 'goal seek' facility into a macro? sprasanna Excel Discussion (Misc queries) 1 April 28th 05 08:07 AM
Build a Macro Dale Avison Excel Programming 2 September 28th 03 05:51 PM


All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"