Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to control screen saver


Hi all

Is there a macro, i can call it any time i want, to force screen save
to start and password prompt to cancel it ?

i know widows does the job on interval bases...but i want to call i
whenever i leave my computer, so cannot anticipate when i will leave m
computer...

any help is realy appreciated...............
yours
h :

--
helmekk

-----------------------------------------------------------------------
helmekki's Profile: http://www.excelforum.com/member.php...nfo&userid=693
View this thread: http://www.excelforum.com/showthread.php?threadid=26881

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Macro to control screen saver

helmekki,

Your path may be different: find where OSA.EXE resides on your machine.

Sub RunScreenSaverProgram()
program = "C:\Program Files\Microsoft Office\Office\OSA.EXE -s"
TaskID = Shell(program, 1)
End Sub

The password setting is controlled by the usual routine: properties from the
desktop.

HTH,
Bernie
MS Excel MVP

"helmekki" wrote in message
...

Hi all

Is there a macro, i can call it any time i want, to force screen saver
to start and password prompt to cancel it ?

i know widows does the job on interval bases...but i want to call it
whenever i leave my computer, so cannot anticipate when i will leave my
computer...

any help is realy appreciated...............
yours
h :)


--
helmekki


------------------------------------------------------------------------
helmekki's Profile:

http://www.excelforum.com/member.php...fo&userid=6939
View this thread: http://www.excelforum.com/showthread...hreadid=268819



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
Excel cannot complete ......... when screen saver is activated. Dwight Trumbower Excel Programming 1 August 19th 04 06:06 PM
XP Screen Saver Timmothy Gransbury Excel Programming 4 April 30th 04 06:21 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 05:05 PM.

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

About Us

"It's about Microsoft Excel"