Solved

Word Macro produces VBA error Data Member Not Found

Posted on 2016-07-19
3
53 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 30

Expert Comment

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

828 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