Back to Browse

Shut down computer automatically after macro finished running

764 views
Jan 11, 2023
2:27

How to shut down computer or pc or laptop automatically after Excel has finished running macro? What is the function to shut down computer in Excel VBA? Parameter (Function) 1. -l (Logs off a user. This is the default even without using any parameters.) 2. -a (Stops shutdown.exe. It is used during a time-out period.) 3. -f (Kills all running applications.) 4. -s (Turns off the computer.) 5. -r (Shuts down and reboots a computer.) 6. -m[\\ Computer Name] (When shutting down a network computer, allows user to choose which computer to turn off.) 7. -t xx (Timer before shut down occurs. Measure in seconds.) 8. -c "message" (Allows a message to be shown in the System Shutdown window. It can not be more than 127 characters.) File for free download 👉 https://www.facebook.com/groups/486402069483674/permalink/780845480039330 File password 👉 AhSingShutdown Excel & VBA discussion public group 👉 https://www.facebook.com/groups/486402069483674 Welcome to join and feel free to raise/ask questions (if any) or share Excel tricks 🤗 #excel #vba

Download

0 formats

No download links available.

Shut down computer automatically after macro finished running | NatokHD