troubleshooting Question

EDI TO CSV

Avatar of W.E.B
W.E.B asked on
Microsoft Excel
29 Comments1 Solution2235 ViewsLast Modified:
Hello,
in 2010 I've asked for a macro help to convert an edi (.out file) that I receive daily from a client and I needed to convert to csv to be able to import into my database.

the macro that I used is/was working perfectly until this week when my client changed the file format.

My client added some lines to the file.

Please see attached macro I use., and sample csv file

I need your help changing the macro to recognize the changes.

changes are:
if you notice on line 10, line 25, Column "A" is empty.

I need to have 2 files created .
1- I need the macro to recognize and skip the lines that has colmn "A" empty. and save the file (FILE01) as .csv
2- I need the macro to recognize the lines with column "A" empty and ignore everything else, and save the file (FILE02) as .csv

is there any way the new file created can be saved automatically on the desktop?

Any help is appreciated.
macro.txt
sample.csv
ASKER CERTIFIED SOLUTION
aikimark
Get vaccinated; Social distance; Wear a mask

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2014

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 29 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 29 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros