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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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