Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default XP Screen Saver

This question may seem a little strange, I have looked around but haven't found an answer that seems to work. I have a program in excel that I wrote that takes between 25 and 45 minutes to run (automates process and data collection and creating reports, hundreds of files). I use windows XP and at work, I ahve the problem of the screen saver kicking on part way through and it creates a problem for some of my code. It is a security issue for work, when the screensaver activates it locks the computer and you ahve to log back in to unlock it (and they won't change it). Is there a way to either disable this with VBA, or put something into my code (22 modules and over 300 pages) that will occasionally do something that will keep the computer active. I have screenupdating turned off for the whole process to help speed things along. Also if it matters I am running exccel 2002

What can I do ??

Thanks for your tim

Timmoth
Operations Assistant
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default XP Screen Saver

Couldn't you just disable the screensaver using Control
Panel | Display settings.

If not, the only thing I can think of is try sending keys
using code. Look at the SendKeys function.

John
www.spreadsheetsolutions.com

-----Original Message-----
This question may seem a little strange, I have looked

around but haven't found an answer that seems to work. I
have a program in excel that I wrote that takes between 25
and 45 minutes to run (automates process and data
collection and creating reports, hundreds of files). I
use windows XP and at work, I ahve the problem of the
screen saver kicking on part way through and it creates a
problem for some of my code. It is a security issue for
work, when the screensaver activates it locks the computer
and you ahve to log back in to unlock it (and they won't
change it). Is there a way to either disable this with
VBA, or put something into my code (22 modules and over
300 pages) that will occasionally do something that will
keep the computer active. I have screenupdating turned
off for the whole process to help speed things along.
Also if it matters I am running exccel 2002.

What can I do ???

Thanks for your time

Timmothy
Operations Assistant
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default XP Screen Saver

John

Some network policies re-enables the screensaver automatically at certain
intervals to ensure that all workstations are password protected after some
time of "inactivity" -unfortunately defined only as mouse/keyboard activity.

Best wishes Harald

"John" skrev i melding
...
Couldn't you just disable the screensaver using Control
Panel | Display settings.

If not, the only thing I can think of is try sending keys
using code. Look at the SendKeys function.

John
www.spreadsheetsolutions.com

-----Original Message-----
This question may seem a little strange, I have looked

around but haven't found an answer that seems to work. I
have a program in excel that I wrote that takes between 25
and 45 minutes to run (automates process and data
collection and creating reports, hundreds of files). I
use windows XP and at work, I ahve the problem of the
screen saver kicking on part way through and it creates a
problem for some of my code. It is a security issue for
work, when the screensaver activates it locks the computer
and you ahve to log back in to unlock it (and they won't
change it). Is there a way to either disable this with
VBA, or put something into my code (22 modules and over
300 pages) that will occasionally do something that will
keep the computer active. I have screenupdating turned
off for the whole process to help speed things along.
Also if it matters I am running exccel 2002.

What can I do ???

Thanks for your time

Timmothy
Operations Assistant
.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default XP Screen Saver

That is the exact issue that I have, I just wish I could have been as clear as you were. Is there a way around it, I can't manually disable it. Will what John mentioned, "Send Keys", take care of the issue. If so I would appreciate some guidance

Thank

Ti

----- Harald Staff wrote: ----

Joh

Some network policies re-enables the screensaver automatically at certai
intervals to ensure that all workstations are password protected after som
time of "inactivity" -unfortunately defined only as mouse/keyboard activity

Best wishes Haral

"John" skrev i meldin
..
Couldn't you just disable the screensaver using Contro
Panel | Display settings
If not, the only thing I can think of is try sending key

using code. Look at the SendKeys function
Joh

www.spreadsheetsolutions.co
-----Original Message----

This question may seem a little strange, I have looke

around but haven't found an answer that seems to work.
have a program in excel that I wrote that takes between 2
and 45 minutes to run (automates process and dat
collection and creating reports, hundreds of files).
use windows XP and at work, I ahve the problem of th
screen saver kicking on part way through and it creates
problem for some of my code. It is a security issue fo
work, when the screensaver activates it locks the compute
and you ahve to log back in to unlock it (and they won'
change it). Is there a way to either disable this wit
VBA, or put something into my code (22 modules and ove
300 pages) that will occasionally do something that wil
keep the computer active. I have screenupdating turne
off for the whole process to help speed things along
Also if it matters I am running exccel 2002
What can I do ??
Thanks for your tim
Timmoth

Operations Assistan


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default XP Screen Saver

You could try using something like this to Turn OFF your screen saver...
then Turn it back ON

Private Declare Function SystemParametersInfo _
Lib "user32" _
Alias "SystemParametersInfoA" ( _
ByVal uAction As Long, _
ByVal uParam As Long, _
ByVal lpvParam As Long, _
ByVal fuWinIni As Long) _
As Long

Private Const SPI_SETSCREENSAVEACTIVE = 17

Public Function EnableScreenSaver(ByVal bStatus As Boolean) As Boolean
Dim lActiveFlag As Long
Dim lRetval As Long

lActiveFlag = IIf(bStatus, 1, 0)
lRetval = SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, lActiveFlag, 0, 0)

If lRetval 0 Then
EnableScreenSaver = True
Else
EnableScreenSaver = False
End If

End Function

Sub Tester()
MsgBox EnableScreenSaver(True)
End Sub






"John" wrote in message ...
Couldn't you just disable the screensaver using Control
Panel | Display settings.

If not, the only thing I can think of is try sending keys
using code. Look at the SendKeys function.

John
www.spreadsheetsolutions.com

-----Original Message-----
This question may seem a little strange, I have looked

around but haven't found an answer that seems to work. I
have a program in excel that I wrote that takes between 25
and 45 minutes to run (automates process and data
collection and creating reports, hundreds of files). I
use windows XP and at work, I ahve the problem of the
screen saver kicking on part way through and it creates a
problem for some of my code. It is a security issue for
work, when the screensaver activates it locks the computer
and you ahve to log back in to unlock it (and they won't
change it). Is there a way to either disable this with
VBA, or put something into my code (22 modules and over
300 pages) that will occasionally do something that will
keep the computer active. I have screenupdating turned
off for the whole process to help speed things along.
Also if it matters I am running exccel 2002.

What can I do ???

Thanks for your time

Timmothy
Operations Assistant
.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual monitors / screen saver issue KevinD Excel Discussion (Misc queries) 5 May 12th 07 09:59 PM
Macro as Screen Saver hmm Excel Discussion (Misc queries) 0 July 19th 06 12:27 PM
Restore the auto save function, it was a life saver. JJB Excel Discussion (Misc queries) 1 May 20th 05 01:25 PM
VBA code slows to a snails crawl when screen saver activated Stephen Bain Excel Programming 2 October 30th 03 06:06 PM
Turn off Screen Saver by Macro Bill Li Excel Programming 2 October 18th 03 05:26 AM


All times are GMT +1. The time now is 04:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"