View Single Post
 
Old 11-16-2017, 05:17 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by slaycock View Post
Microsoft in their normal cack-handed way have updated the default styles provided in the Normal template but have not extended the wdStyleBuiltin enumeration to match. Thus you can replace 'Comment text' with wdStyleCommentText but you cannot replace and 'Balloon Text' with the (predicted) constant wdStyleBalloonText.

Code:
With .Styles(wdStyleBallonText).Font  <- Error 'The requested memeber of the collection does not exist'
You'd even get that error if the name wasn't misspelled (wdStyleBalloonText)

FWIW a list of Word constants is available at: https://msdn.microsoft.com/en-us/lib...or=-2147217396
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote