Copy 2 columns of data from a text file using criteria for listbox

Mike_CS

New Member
Joined
Jun 21, 2017
Messages
24
Hi all

I have had a try with this and it's beaten me too. i'm trying to display 2 columns from a text file. Row 1 are headings and the environ$"username" will be the column name I wish to use and contains annual leave type data going down. And i would like to display column 1 which will have dates for the year.

I want to populate a listbox with any rows with dates that have an entry under the corresponding column heading as well as the column with the entry (skipping any blanks).

It should hopefully look like this small example:

Col1 Username
02/04/2018 Annual - AM
05/05/2018 Annual - Day
06/05/2018 Annual - AM

I can do it with Access/SQL fairly easily but due to network traffic i've been told i have to go back in time and use text files.

I have different excel files updating text files and my tool reads them but Im hopeful that it will take over the updating but i still need to display them for people.

Can any body provide me with any solutions?

Many thanks in advance - Mike
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,786
Messages
6,174,546
Members
452,571
Latest member
MarExcelTips

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top