Help with Macros

Harma

New Member
Joined
Nov 11, 2019
Messages
2
I very new to using Macro.
Can some one please help me with a code to open all the below applications once I run the Macro.

Calculator
Adobe Reader DC
Cisco Jabber
Microsoft word
Micrsoft excel
Microsoft power point
Microsoft outlook
Snipping tool
Notepad

Any help is really appreciated

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Something like this.

Code:
Sub RunPrograms()
Dim AR(0 To 1) As String 'adjust to add more, e.g AR(0 to 9)


AR(0) = "C:\Windows\System32\notepad.exe"
AR(1) = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"


For i = 0 To UBound(AR)
    Call Shell(AR(i))
Next i


End Sub
 
Upvote 0
Something like this.

Code:
Sub RunPrograms()
Dim AR(0 To 1) As String 'adjust to add more, e.g AR(0 to 9)


AR(0) = "C:\Windows\System32\notepad.exe"
AR(1) = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"


For i = 0 To UBound(AR)
    Call Shell(AR(i))
Next i


End Sub


Thanks lrobbo314

Sorry for replying so late.Can we have a code within this code to open like 20 URL as well, and open these 20 URL in new tab in chrome, so like 20 tabs and then verify if the URL has been loaded successfully, like a
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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