Thanks for your answer and help!
Yes, need to get the text from a pdf, and paste it in excel to manipulate it with the vba macro. The old vba created for some one else was given to me to troubleshoot and make it more efficient as it became super slow, but in my machine I am not even able to run it as I get the automatiuon error when reaching the below:
If Not AC_PGTxt Is Nothing Then
With AC_PGTxt
For j = 0 To .GetNumText - 1
T_Str = T_Str & .GetText(j)
Next j
End With
End If
I think you will find it very helpfull to write an Acrobat folder level JavaScript function for extracting the page text, and then call this function from the VBA script.
This will help in 2 big ways
1) Since you are using a JavaScript function to acquire the text, it is more efficient to develop the script in the native environment, where it is easy to debug and maintain.
2) The interface between VBA and Acrobat JavaScript is inefficient. It's slower than running the JS in it's native environement and the is a fundamental incompatibility between complex types. Putting all the JS code in a single location will save you a lot of headaches.