Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel to front
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Excel to front
Miscellaneous
Thread ID:
01669450
Message ID:
01669450
Views:
83
How do I make sure that excel comes to the foreground, without having to click on the excel icon? The following opens excel 2016 but it does not automatically bring excel to to the foreground? Thanks, Steve
oEx = CREATEOBJECT('excel.application')
oEx.Visible= .T.
eFile = "c:\myfile.xls"
Actually, this seems to works but without .visible = .T., the excel menu may not appear.
(http://forum.foxclub.ru/read.php?32,177182,258927)
oEx.WindowState = xlMinimized && Minimize the window
oEx.WindowState = xlMaximized && Maximize the window, which leads to its activation 
oEx.visible = (.t.)
Next
Reply
Map
View

Click here to load this message in the networking platform