#1
|
|||
|
|||
Retrieve equation objects from plain text
Hello, I am new in VMA programming so I am facing a problem. I have received some huge files that contain a lot of equations but what happens is that there was the original one, then saved as pdf and then from pdf editor I received the word version. So as you can understand the equations now are plain text because when I highlight all the equation objects with VMA for a file i just created and inserted equations it works. My script highlights every equation but when I do it with one of the document I have received even though I can see some equations when I run the same script nothing is highlighted. I would really appreciate any help any if what I am trying to do is even possible.
Thanks in advance. |
#2
|
||||
|
||||
I'm not familiar with VMA - do you mean VBA?
You will need to supply a sample doc and the code you are using which fails. And describe what exactly you want to do with these converted equations.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
So to be more specific I want to retrieve the equation format from a word document that has plain text. I am sorry in my last post I said VMA when I wanted to say VBA. I received a document that has Fc (the c is a subscript) so in the original word document it was an equation. But in the file I received it has the same format but it is not an actual equation object. So do you know if there is any way to retrieve those objects?
I am using this script to highlight all the equations( the script is working fine if there is a proper equation object) Code:
Sub SelectAllEquations() Dim xMath As OMath Dim I As Integer With ActiveDocument .DeleteAllEditableRanges wdEditorEveryone For I = 1 To .OMaths.Count Set xMath = .OMaths.Item(I) xMath.Range.Paragraphs(1).Range.Editors.Add wdEditorEveryone Next .SelectAllEditableRanges wdEditorEveryone .DeleteAllEditableRanges wdEditorEveryone End With End Sub |
Tags |
equations, word 16 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Placed PNG files turning into plain white objects | WordUser789 | Drawing and Graphics | 0 | 06-19-2017 10:09 PM |
Plain text help with returns - looking for marker to use when converting to plain text | redzan | Word | 1 | 04-18-2017 06:17 PM |
Rich text/Plain text Content Controls in Template | michael.fisher5 | Word | 9 | 11-19-2014 06:36 AM |
Convert equation objects to inline objects | sumjoh | Word VBA | 1 | 01-29-2013 08:38 PM |
My plain text post got converted to rich text in a reply, how to convert it back? | david.karr | Outlook | 0 | 01-05-2012 09:46 AM |