Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Word Macro produces VBA error Data Member Not Found

Posted on 2016-07-19
3
Medium Priority
?
89 Views
Last Modified: 2016-07-21
A friend has developed some Word macros he wanted me to try in Word 2010 and some are producing VBA errors (attached sample for Alt h 2)), about which I know nothing. As far as I know I'm using default Word settings--is there something I should be taking a closer look at?
Alt-h-2-error.png
0
Comment
Question by:terrypba1
3 Comments
 
LVL 33

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41719418
Normally that error occurs if you misspelled an object in the code.
0
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 41719429
Hi,

ParagraphFormat.CollapsedByDefault
is a property only available since Office 2013

then delete this line since it is not known of Word 2010

Regards
0
 

Author Closing Comment

by:terrypba1
ID: 41723656
That would do it! Thanks!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question