+ Reply to Thread
Results 1 to 2 of 2

Launching command prompt from VBA

  1. #1
    Registered User
    Join Date
    11-24-2016
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    2

    Question Launching command prompt from VBA

    Hello,

    I am trying to launch a Windows command prompt from Excel 2016 (VBA).

    I have a shortcut on my desktop and it works fine.

    The shortcut is: \\External Folder\Test.cmd

    Behind it, I believe there is a Python script. Python is not installed on my computer.

    I now want to be able to launch it as part of an existing VBA code.

    I searched this forum (keywords: command prompt, cmd) but could not find the solution.

    Thank you for your help, comments.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Launching command prompt from VBA

    Possibly...
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Launching a saved bat file using VBA - CMD prompt flickers but doesn't run
    By PFDave in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2016, 06:01 AM
  2. [SOLVED] Run Command Prompt Icacls code in VBA Command Button on Userform
    By luismalave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2015, 11:40 PM
  3. How to run a set of commands in command prompt using vba
    By A N Rahman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2015, 09:05 AM
  4. [SOLVED] Need help launching robocopy command in Shell()
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2014, 07:14 AM
  5. Command Prompt through Excel
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 07:07 AM
  6. Incorrect linked data when launching spreadsheet from a command line.
    By kevlar3d in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2012, 11:28 PM
  7. Command Prompt Window - VBA
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2011, 10:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1