• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 97
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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