Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Custom CommandBar in Word?
Message
De
06/03/2003 10:18:44
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:
00762175
Vues:
13
>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?
local llExists
for each cbar in oWord.CommandBars
 if lower(cbar.Name) = 'mynewtoolbar'
   llExists = .t.
   exit
 endif
endfor
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
Répondre
Fil
Voir

Click here to load this message in the networking platform