• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 102
  • Last Modified:

Word Macro produces VBA error Data Member Not Found

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
terrypba1
Asked:
terrypba1
1 Solution
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Normally that error occurs if you misspelled an object in the code.
0
 
Rgonzo1971Commented:
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
 
terrypba1Author Commented:
That would do it! Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now