Running Macro - Remotely

betty02

New Member
Joined
Aug 15, 2023
Messages
1
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Just a quick one to see if it's possible then I can maybe add more detail.

We have a button on a spreadsheet that runs a macro of stopping a service then another button that starts a service. Every so often someone needs to load up Remote Desktop, login an then they press the stop process button, wait 5 seconds and then hit the start process button.

Is it possible to have a button locally that can do this connection and call the stopping of the process? Or a script that can run where I can enter in the IP and username/pass for the remote machine or something like that?

Or simple terms am I asking for too much?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Let me get a few details. You have a macro running continuously? You want to stop that macro and restart that macro once or more a day?

If yes for both of those, can the macro be restarted at the same times each day? If so, then code be added to check the time, stop running, and use the Application.OnTime function to call a SUB in a few seconds to restart the macro.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top