>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