Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I prepare one macro and placed it "Workbook_Open()" and at the end, I said "Me.Save" and "ActiveWorkbook.Close" to close the workbook. I created a scheduled task with the "Scheduler" (in control panel) to open the above XL file once in every 30 minutes. When ever this file is opened by "Scheduler", I see a new XL window opening in my task bar and closes after the macro is finished. Is there a way I can hide this XL window so that user does not know about it at all. Thanks Sri -- Message posted via http://www.officekb.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don'tt believe so. XL needs to open at least enough to run your worksheet,
so even if you use application.screenupdating=false you'll still see the application open. Also, what you're describing is very similar to what a virus would do, thus reinforcing my belief that this can not be done. -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Sri via OfficeKB.com" wrote: Hello, I prepare one macro and placed it "Workbook_Open()" and at the end, I said "Me.Save" and "ActiveWorkbook.Close" to close the workbook. I created a scheduled task with the "Scheduler" (in control panel) to open the above XL file once in every 30 minutes. When ever this file is opened by "Scheduler", I see a new XL window opening in my task bar and closes after the macro is finished. Is there a way I can hide this XL window so that user does not know about it at all. Thanks Sri -- Message posted via http://www.officekb.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't have a guess.
But if you don't get an answer (that you like) here, you may want to ask in one of the VB or Scripting forums. "Sri via OfficeKB.com" wrote: Hello, I prepare one macro and placed it "Workbook_Open()" and at the end, I said "Me.Save" and "ActiveWorkbook.Close" to close the workbook. I created a scheduled task with the "Scheduler" (in control panel) to open the above XL file once in every 30 minutes. When ever this file is opened by "Scheduler", I see a new XL window opening in my task bar and closes after the macro is finished. Is there a way I can hide this XL window so that user does not know about it at all. Thanks Sri -- Message posted via http://www.officekb.com -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe...
Tools | Options | View (tab) and uncheck Windows In TaskBar. -- Jim Cone Portland, Oregon USA "Sri via OfficeKB.com" wrote in message news:8f165df5fe937@uwe... Hello, I prepare one macro and placed it "Workbook_Open()" and at the end, I said "Me.Save" and "ActiveWorkbook.Close" to close the workbook. I created a scheduled task with the "Scheduler" (in control panel) to open the above XL file once in every 30 minutes. When ever this file is opened by "Scheduler", I see a new XL window opening in my task bar and closes after the macro is finished. Is there a way I can hide this XL window so that user does not know about it at all. Thanks Sri -- Message posted via http://www.officekb.com |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Instead of opening the XL file directly, have the Scheduler run a samall VB
script which creates an Excel appplication instance (using createobject) and then opens the file in that instance. Unless you explicitly set visible=true on the Excel application instance, you shouldn't see it. Tim "Sri via OfficeKB.com" <u47062@uwe wrote in message news:8f165df5fe937@uwe... Hello, I prepare one macro and placed it "Workbook_Open()" and at the end, I said "Me.Save" and "ActiveWorkbook.Close" to close the workbook. I created a scheduled task with the "Scheduler" (in control panel) to open the above XL file once in every 30 minutes. When ever this file is opened by "Scheduler", I see a new XL window opening in my task bar and closes after the macro is finished. Is there a way I can hide this XL window so that user does not know about it at all. Thanks Sri -- Message posted via http://www.officekb.com |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Sri via OfficeKB.com" wrote:
Hello, I prepare one macro and placed it "Workbook_Open()" and at the end, I said "Me.Save" and "ActiveWorkbook.Close" to close the workbook. I created a scheduled task with the "Scheduler" (in control panel) to open the above XL file once in every 30 minutes. When ever this file is opened by "Scheduler", I see a new XL window opening in my task bar and closes after the macro is finished. Is there a way I can hide this XL window so that user does not know about it at all. Thanks Sri -- Message posted via http://www.officekb.com I have several VBS scripts that collect data over the network and store it in Excel sheets. I create Excel as automation object: Set objExcel = CreateObject("Excel.Application") objExcel.Visible = False objExcel.DisplayAlerts = False then I open or create a workbook write the data save and quit. The Excel.Application instance is not visible in taskbar, but it is still visible in Windows Task Manager under Processes tab, which is convenient, because I don't want users to see it, but also to have a way to terminate it if it hangs. When using Scheduled tasks, there is also an option to run a task under a user account different than the currently logged on user. If you do that the task will also be invisible to the logged on user, except for Windows Task Manager. I still use Windows XP, so I don't know about possible changes in Vista. -- urkec |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you all for your replies.
I tried "Application.Visible=False" at the begining of my macro and "Application.Quit" at the end of macro. It works fine (excel window is invisible) but EXCEL.EXE task is not closed in my task bar. If I see my taskbar (ctrl+alt+del), I see one EXCEL.EXE process being added in "Processes" every time my macro runs but nothing in "Applications" tab. Is there a way to stop this process also. Most of you are suggesting me to write some VB script with which start an excel instance in "invisible" mode. But the main problem with me is I do not know anything (how to write / where to write / how to execute etc..) about VB. I can use VB only with excel. What I know is to put some commands in the "VB Editor of the Excel" and execute them. Any help with regard to VB is also fine for me. Thank all for your support. Sri urkec wrote: Hello, [quoted text clipped - 12 lines] Thanks Sri I have several VBS scripts that collect data over the network and store it in Excel sheets. I create Excel as automation object: Set objExcel = CreateObject("Excel.Application") objExcel.Visible = False objExcel.DisplayAlerts = False then I open or create a workbook write the data save and quit. The Excel.Application instance is not visible in taskbar, but it is still visible in Windows Task Manager under Processes tab, which is convenient, because I don't want users to see it, but also to have a way to terminate it if it hangs. When using Scheduled tasks, there is also an option to run a task under a user account different than the currently logged on user. If you do that the task will also be invisible to the logged on user, except for Windows Task Manager. I still use Windows XP, so I don't know about possible changes in Vista. -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Invisible Link | Excel Discussion (Misc queries) | |||
invisible chart | Charts and Charting in Excel | |||
Invisible sheets | Excel Discussion (Misc queries) | |||
Invisible Formatting ? or ... ? | Excel Worksheet Functions |