Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Custom CommandBar in Word?
Message
From
06/03/2003 10:31:24
 
 
To
06/03/2003 10:20:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00762136
Message ID:
00762184
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform