Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Toolbar
Message
From
19/06/2001 04:08:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00520769
Message ID:
00520880
Views:
13
>Can you enable and disable custom buttons on an Excel custom toolbar? If so how/where?

Bill,
It's like enabling/disabling standart ones. ie:
ox=createobject('Excel.Application')
with ox
	for each cb in .Commandbars
		? cb.Name
	endfor
	for each cbb in .Commandbars('Formatting').Controls
		? cbb.Caption
	endfor
	for each cbb in .Commandbars('File').Controls
		? cbb.Caption
	endfor
	.Workbooks.Add
	.Commandbars('Formatting').Controls('Bold').Enabled = .F.
	.Commandbars('File').Controls('Send to').Enabled = .F.
	.Visible = .t.
endwith
All controls also has id that you can use to refer.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform