View Single Post
 
Old 09-14-2022, 08:35 AM
TheBigBoss TheBigBoss is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Default Reading basic .txt file fails, how can it be?

Hi there,

Running a macro in Words that parse a .txt file and then deal with MS Word properties, bookmarks and raw content inserted in table.

I did a test with a .txt file I typed in, it works. I have been using .txt file for a year on One Drive . No issue. So today, I completed a template request online which allow users to send request to generate docx.

When I run the .txt file I received by email, code fails after reading the first line, there is a "0" hanging. How I can it be? There must something in that txt file sent by email (PHP generated) that I can't see! Throwing a "0".

Thanks
Attached Images
File Type: png bug.png (244.1 KB, 23 views)
Attached Files
File Type: txt 615e8498df6dc933e3baf8732fe5ecf38f4a62b5.txt (481 Bytes, 5 views)
Reply With Quote