If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > share txt file as database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-06, 07:11
sal21 sal21 is offline
Registered User
 
Join Date: Oct 2004
Posts: 61
share txt file as database

assuming i have a txt file into a dir server here is the global dim:

Global Const PATH = "\\GCD01F4500\DATI\PUBBLICA\INPS\CARTEL1.TXT"

Is possible with a vba macro ,to make a vlooup into text file (like database) and sheet with the index in column A and retrive the result of match into column B

In effect from each value into column A of sheet matching record into text file and return the result into column B of sheet...

Note: into txt the first line is the header of record.

ziped file: http://www.mytempdir.com/644325
Reply With Quote
  #2 (permalink)  
Old 05-08-06, 00:32
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Possible, I guess so. Being a text file it won't be efficient, I think. As in, because it is a text file, you couldn't use database type matching functions, only text matching that would require looping through every record.

Instead it might be better to open the text file and (temporarily) store the data in Excel whilst you do the lookups - either VLOOKUP, or INDEX/MATCH or via SQL or whatever.

HTH,
Fazza
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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