Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Custom CommandBar in Word?
Message
De
06/03/2003 10:20:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/03/2003 09:27:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00762136
Message ID:
00762177
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform