Visible Excel window.

B

Bobby

Can someone tell me why do I see the Excel Window(without the sheet)
at the execution of my script that read the first line third column of
a specific sheet? This script run's under XP on my local machine.
Here is my code:

Set app = CreateObject("Excel.Application")
app.ScreenUpdating = False
app.Application.EnableEvents = False
app.Visible = False

Set Workbook = app.Workbooks.Open("Filename.xls")

app.Application.EnableEvents = False
app.ScreenUpdating = False
app.Visible = False
app.Sheets("DAILY").Select

intRow = 1
'Do Until app.Cells(intRow,1).Value = ""
Do Until IntRow = 2
Wscript.Echo "TIME " & CDate(app.Cells(intRow, 2).Value)
introw = intRow + 1
Loop

Workbook.close false
'app.Quit
WScript.Quit

Thank's ahead!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top