Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel - WindowState Property
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00397885
Message ID:
00398123
Views:
21
>if i have the folow code
>
>tmpsheet = GetObject('','excel.sheet')
>XLApp = tmpsheet.application
>XLApp.Visible = .t.
>
>i have a excel application with a empty workbook...
>
>it's possible to apply the windowsatate property to make the application minimized?
>
>xlapp.application.windowstate = 1 ====> not function!
>
>can anyone help me?
>
>
>
Sergio,

It looks like you're trying to apply VFP WindowState values to Excel. They're different. Try:
#DEFINE xlMaximized -4137
#DEINE xlMinimized -4140
#DEINE xlNormal -4143
xlapp.application.windowstate = xlMinimized
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform