ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to run macro to shut down my PC? (https://www.excelbanter.com/excel-programming/436318-how-run-macro-shut-down-my-pc.html)

Eric

How to run macro to shut down my PC?
 
Does anyone have any suggestions on how to code macro to shut down my PC?
I have a list of code within macro to be run for 3 hours, I would like to
add coding at the end of this macro to shut down my PC.
Does anyone have any suggestions on how to do it?
Thanks in advance for any suggestions
Eric

EricG

How to run macro to shut down my PC?
 
Here's one possible method:

http://www.dreamincode.net/code/snippet90.htm

HTH,

(also) Eric

"Eric" wrote:

Does anyone have any suggestions on how to code macro to shut down my PC?
I have a list of code within macro to be run for 3 hours, I would like to
add coding at the end of this macro to shut down my PC.
Does anyone have any suggestions on how to do it?
Thanks in advance for any suggestions
Eric


EricG

How to run macro to shut down my PC?
 
Okay, ignore that. I just tried it and it does nothing. Probably a security
issue.

Sorry.

"EricG" wrote:

Here's one possible method:

http://www.dreamincode.net/code/snippet90.htm

HTH,

(also) Eric

"Eric" wrote:

Does anyone have any suggestions on how to code macro to shut down my PC?
I have a list of code within macro to be run for 3 hours, I would like to
add coding at the end of this macro to shut down my PC.
Does anyone have any suggestions on how to do it?
Thanks in advance for any suggestions
Eric


John

How to run macro to shut down my PC?
 
see if this article is of any help.

http://www.vbaexpress.com/kb/getarticle.php?kb_id=515
--
jb


"Eric" wrote:

Does anyone have any suggestions on how to code macro to shut down my PC?
I have a list of code within macro to be run for 3 hours, I would like to
add coding at the end of this macro to shut down my PC.
Does anyone have any suggestions on how to do it?
Thanks in advance for any suggestions
Eric


EricG

How to run macro to shut down my PC?
 
Here is a better possibility, with a sample workbook to try out:

http://www.vbaexpress.com/kb/getarticle.php?kb_id=515


"Eric" wrote:

Does anyone have any suggestions on how to code macro to shut down my PC?
I have a list of code within macro to be run for 3 hours, I would like to
add coding at the end of this macro to shut down my PC.
Does anyone have any suggestions on how to do it?
Thanks in advance for any suggestions
Eric



All times are GMT +1. The time now is 06:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com