calling Batch file in VBA not working properly
问题 I'm trying to create a program that can be used by other people. Currently, my files are in the directory C:\Documents and Settings\jpmccros\Desktop\test This directory contains my macro.xlsm , names.bat , and another sub-directory called Data . The batch file names.bat does the following: cd data dir/b/o:n > names.txt This does exactly what I want it to do. When I open the batch file (which is in the directory C:\Documents and Settings\jpmccros\Desktop\test\ , the MS DOS Command Prompts