Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2019, 09:57 AM
gerasimosRagkavanis gerasimosRagkavanis is offline Retrieve equation objects from plain text Windows 10 Retrieve equation objects from plain text Office 2016
Novice
Retrieve equation objects from plain text
 
Join Date: Jan 2019
Posts: 2
gerasimosRagkavanis is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 01-24-2019, 04:44 PM
Guessed's Avatar
Guessed Guessed is offline Retrieve equation objects from plain text Windows 10 Retrieve equation objects from plain text Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #3  
Old 01-25-2019, 06:22 AM
gerasimosRagkavanis gerasimosRagkavanis is offline Retrieve equation objects from plain text Windows 10 Retrieve equation objects from plain text Office 2016
Novice
Retrieve equation objects from plain text
 
Join Date: Jan 2019
Posts: 2
gerasimosRagkavanis is on a distinguished road
Default

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
Reply With Quote
Reply

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
Retrieve equation objects from plain text Plain text help with returns - looking for marker to use when converting to plain text redzan Word 1 04-18-2017 06:17 PM
Retrieve equation objects from plain text Rich text/Plain text Content Controls in Template michael.fisher5 Word 9 11-19-2014 06:36 AM
Retrieve equation objects from plain text 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft