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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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