Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to use GetObjects in an Excel 2007 VB script to get the properties
of mailboxes. This works until I hit a mailbox LegacyDN that has an apostrophe in it. In the example below Excel gives an "Automation error", "-2147217375" because of the apostrophe or single quote in the name Pat O'Conell. winMgmts:!\\OurServer\root\MicrosoftExchangeV2:Exc hange_Mailbox.LegacyDN='/o=SW/ou=HAM/cn=CENTRAL/cn=Pat O'Conell',MailboxGUID='{CD2...}',ServerName='OurSe rver',StorageGroupName='st gr 02',StoreName='mb st - std' None of the escape characters seem to work: (Pat O''Conell or Pat O\'Conell). Any hints? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel chokes when printing multiple charts per page | Charts and Charting in Excel | |||
Always have apostrophe | Excel Discussion (Misc queries) | |||
Apostrophe | Excel Programming | |||
Add apostrophe | Excel Worksheet Functions | |||
Add apostrophe | Excel Programming |