Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Custom CommandBar in Word?
Message
De
06/03/2003 10:31:24
 
 
À
06/03/2003 10:20:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00762136
Message ID:
00762184
Vues:
13
Good show Doctor. I originally tried VARTYPE() and it did not work.

With over 1,000 objects I did not like spinning thru all the controls - too slow.
TYPE() worked and I thank you very much...


>>I need to add a custom toolbar in Word via automation only if it does not already exist. However, if I check to see if Word's commandbar already exists I get error number 1426. Here is the code I am using:
>>
>>
>>oWord = CREATEOBJECT('Word.Application')
>>ox = oWord.CommandBars('myNewToolbar')
>>
>>
>>Is there a better way to check and see if the toolbar already exists?
>
>I think this might work too :
>
>if type("oWord.CommandBars('myNewToolbar')") = 'O'
>
>Cetin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform