Solved

Word Macro produces VBA error Data Member Not Found

Posted on 2016-07-19
3
44 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 28

Expert Comment

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

Accepted Solution

by:
Rgonzo1971 earned 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is an Add-On procedure to be used in conjunction with the code provided in Reducing EE Email Clutter using Outlook (http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/A_3146-Outlook-Processing-EE-emails-on-Receive.…
I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now