D
D.P. Roberts
Hello,
I have several vb scripts which are used to open csv files in Excel.
Everything is working fine, except the Excel files are being opened behind
other open windows. It's not a big deal, but rather annoying to have to
minimize my web browsers or other windows to get to the Excel file that was
opened. This is only happening when I run the scripts in Windows 7; when I
run them from Windows XP the Excel files are opened on top of all other
windows as expected. Also, simply opening Excel in Windows 7 works as
expected (the app opens on top of all other windows) - the problem is only
happening when opening Excel from within a script in Windows 7. Here is the
code I am using:
Set XL = CreateObject("Excel.application")
Set XLBook = XL.Workbooks.Open("filename.csv")
XL.Visible = True
Is there another command I can use that will force the Excel application to
open on top?
I've searched around for an answer but have found nothing on this issue, so
any help would be greatly appreciated.
Thanks!
I have several vb scripts which are used to open csv files in Excel.
Everything is working fine, except the Excel files are being opened behind
other open windows. It's not a big deal, but rather annoying to have to
minimize my web browsers or other windows to get to the Excel file that was
opened. This is only happening when I run the scripts in Windows 7; when I
run them from Windows XP the Excel files are opened on top of all other
windows as expected. Also, simply opening Excel in Windows 7 works as
expected (the app opens on top of all other windows) - the problem is only
happening when opening Excel from within a script in Windows 7. Here is the
code I am using:
Set XL = CreateObject("Excel.application")
Set XLBook = XL.Workbooks.Open("filename.csv")
XL.Visible = True
Is there another command I can use that will force the Excel application to
open on top?
I've searched around for an answer but have found nothing on this issue, so
any help would be greatly appreciated.
Thanks!