shell

  1. C

    retval = Shell("excel.exe """ & filename & """", vbNormalFocus)

    Hi all! Is there any way to choose a sheet in ???? I need to open another excel file with "shell" in a specific sheet. Thanks
  2. P

    Shell cmd window position?

    Is there a simple was to control the position of the cmd shell window. I am using this to position userforms and popups(msgbox) and this works well. ' Simple "with" to put Userform in centre of monitor when I'm using 2 monitors With MYUSERFORM .StartUpPosition = 0 .Left =...
  3. J

    Help with shell command on paths with spaces

    Hi all, I'm really struggling to workout this shell command on paths with spaces in them. The code below works with no issue, but as soon as I uncomment the long path with the same set of 20 zip files, I get an error (Error: cannot find archive). I feel like I've tried an infinite number of...
  4. andrewb90

    Attach current excel file to email sent using CDO

    Hello all, My question has multiple parts to it. Basically, I already have my CDO code and functions that can send emails and attach a pdf of different sheets. What I am looking for is: a) a way to locate the file location that the current workbook is in. b) add that file location to my cdo...
  5. Z

    Pull data from multiple pdf files into separate sheets of a workbook

    Hi Gurus, I have a folder full of pdf files which have similar template. I want to copy the data from each of these files into separate sheet of a workbook. I have extracted the list of files and file paths in the workbook and tried to run this macro My predicament is that this macro only...
  6. Devin

    Windows Folder Options Affecting Listing of Files (Shell.Application)

    My goal is to get file sizes for XML files located in a ZIP folder. I have changed an Excel file’s extension to “.ZIP” and I am trying to only extract the .XML file names. FYI, this may only work on new versions of Windows and Excel. I am using Shell.Application to extract the file names. My...
  7. S

    Dynamic Shell Function

    Hi, got my code all set up but require a dynamic shell function when calling notepad. Currently it is as below (which works fine): Call Shell("notepad C:\Users\Shudarstaran.Neel\Desktop\DummyTest.xml", vbNormalFocus) I would like it to be dynamic and work like below...
  8. J

    Shell iexplore.exe xml #

    Hello, I have the following code below: Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) Dim URL As String On Error GoTo error4: URL = Me.ListBox1.Column(5, Me.ListBox1.ListIndex) Shell "C:\Program Files\Internet Explorer\iexplore.exe " & URL, vbNormalNoFocus Exit...
  9. H

    VBA Shell creating a TXT file

    Hello guys! I made a C++ .EXE program that generates in a txt file points of a Fourier series of a given function. The program is working just fine. It generates the data and I can, manually, import these to excel to create the charts. Marvelous. The problem is when I try to automate the...
  10. H

    Making a VBA Shell Call of a EXE create a TXT file

    Hello guys! I made a C++ .EXE program that generates in a txt file points of a Fourier series of a given function. The program is working just fine. It generates the data and I can, manually, import these to excel to create the charts. Marvelous. The problem is when I try to automate the...
  11. W

    I keep getting errors when opening PDF documents from Excel

    I am trying to parse specific measurements contained in some 3500 PDF files so they can be graphed and trends can be analyzed. The problem is that sometimes my code can loop runs 30 times before I get the "There was an error opening this document. This file cannont be found." from Adobe...
  12. R

    execute a DOS command via VBA

    I have been attempting to execute the following DOS command via excel vba cmd net user KERRS1 /DO >C:\DATA\RJR\users.txt Dim RetVal RetVal = Shell("cmd net user KERRS1 /DO >C:\DATA\RJR\users.txt", 1) although it opens a dos window but does not execute the net user command. Any...
  13. I

    How do you run a .exe with parameters using vba's shell()?

    Via VBA, I am trying to run an executable that has parameters and a file name. Dim strProgramName As String Dim strArgument0 As String Dim strArgument1 As String '//This is the executable strProgramName = "C:\Dir0\Dir1\Dir2\Dir3\MyExecutable.exe" '//These are the required parameters...
  14. S

    Calling Python script in excel as executable

    I am currently developing a tool for a client that interfaces with both python 2.7 and excel 2013 and as a result running into a problem. As background, I have a python code I want to run as a executable. The client doesn't have python on their computers so it's vital that the exe runs without...
  15. J

    Calling Shell from VBA

    Hi All, I am wondering how to use the Shell feature in VBA to call a terminal (using mac), then run a perl script called read_scalepack.pl on a log file that I have chosen using GetOpenFileName. Right now I am just using Terminal to issue the .pl script (its parsing a log file) and then...
  16. K

    Running Navision reports from excel

    I have an excel application that is relying on data from a Navision report being run every month on a specific time. Today this is done manually, but I would like to do this programatically ie trigger a macro to run this report. Is it at all possible to run Navision reports and retrieve data...
  17. W

    Need help with output redirection from a VBS to TXT or BAT to TXT

    Hello again forum, I am working on a VBA routine that calc and verifies hash files for a series of folders and sub directories, using a command line prog called exactfile.exe (exactfile.com). It is very similar to M$'s FCIV utility, but it is actually supported on Win7/Win8. The issue I am...
  18. R

    VBA code to open files in an application using Shell

    I'm relatively new at VBA, and I am developing this excel based tool that creates two .xls files, whose paths are saved in two variables. The next step is the user has to select these two files, right click and select an application called Compare. I was wondering if this process could be...
  19. S

    Relative file path VBA

    I have a WinForm, which I'm calling via VBA's Shell command: Sub Button1_Click() Shell "C:\\TemplateFuncitons.exe " + ActiveWorkbook.FullName, 1 End Sub I made this module an Excel Add-in and added it as a button in the quick access toolbar. Now, the idea is for the WinForm.exe and the...
  20. A

    Shell wait and sendkeys

    I need to 1. launch cygwin from VBA, 2. run an executable with inputs and 3. wait for it to finish. I have had success doing steps 1 and 2 OR steps 1 and 3, but cannot figure out all 3. For steps 1 and 2: ReturnValue = Shell("C:\cygwin\Cygwin.bat", 1) SendKeys "S{ENTER}" (this is only one...

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