Hi snb
Thanks again. I have spent some time looking at this. I have the initial problem solved.
( But then I have a problem with a particular pdf File. – I am only getting a small amount of the text
)
Here a summary of what I have done:
First I change just the diacritic . ( I usually do replace things like ä with ae , I just oversaw it in this case. )
So First,
_2a) I rename my pdf File example, just changing Nährwerte to Naehrwerte
diacriticWonk.JPG
http://imgur.com/xtFcf5Y
Then run this code
Code does not error, but nothing happens.
_.....
_2b) I see also some spaces in my File name. I have occasionally had problems with that.
So I made a copy of the pdf File with a shorter and more descriptive pdf File name, McDStd.pdf.
McDStd.jpg
http://imgur.com/HvAL35k
I run this code
_.... BINGO !! ( It works ! )
BINGO.jpg
http://imgur.com/7RPZt4a
_.._____________________
For completeness,
_ I tried no spaces in the original file name
Standardprodukte_Nährwerte_ab29.07.2014.pdf
Also Works !!!!
_.........
( a handy trick if you want to prevent someone converting your pdf File !! eith that code, Lol.. )
Maybe the result makes sense: if you have extra spaces , then a code line may “look” to the complier as having extra arguments?
= ________ Argument1 Argument2 Argument3 etc... etc..
_..................
_.____________________________________
Then I tried further
_3a)
_....
He He !! The second loop never stops !! Or rather it does stop.. but I cannot run any other code ! ?
What is this telling me?
I have never had a simple answer which I can understand to what DoEvents does. Possibly it is telling me I can do anything else with my computer except running a VBA code, as I have a VBA code Looping for ever ! ?
I can save my File. So I save it. Then Close it. Then Open it. -- All is well .
( If I comment out ‘DoEvents, then the code does go for ever and I cannot stop it !! – I have to close Excel brutally, and restart Excel ! )
_........
Now I run the code but use the File with no spaces in the File Name , ( Standardprodukte_Nährwerte_ab29.07.2014.pdf ) , ( and correct the “Trigger”
)
_3b)
_..
Works 
So the problem was just the extra spaces in the File name.
_ .....
_._________________
Once again for completeness – What happens if the Text File does not exist ? – Try a code that works but delete the text File before running this code:
_3c)
Result: it makes the File ,
. So it works without having a text File present.
_..........
_._________________-
Thanks again for the help snb 
_.....
Unfortunately , when I try to use the code on another more complicated File , the text File produced only has a small amount of text . It does not produce the main Table text which is the main thing I am interested in. 
This is that File
Freigabe_16-0728_Lay.pdf
https://app.box.com/s/9xbcfifohdydq1qinu2g5pjguzu7b25i
This code “works for it” _......
_ But..... This is the produced File
McCafeMcDText.txt
https://app.box.com/s/g8pfgf5bq0ca1bxxf6ls0nahma59kynu
_...
... It is only giving me some initial text which is not of interest to me.
( I am continuing to look at this for now here ( in the test Sub Forum ):
http://www.excelforum.com/showthread...82#post4501382
If I do not get any further I may start a new Thread in one of the other Sub Forums or elsewhere, ( or otherwise Kyle is going to get very upset in me High jacking here.. Lol.. )
Alan
( P.s. Adobe are not too helpful _.. and I would like, if possible, to avoid that route
https://forums.adobe.com/message/9063708#9063708 )
Bookmarks