So I am having trouble with visual basic. I've scoured several forums (although someone might link me to another thread on this one) and have not been able to find a solution to my problem. I need to stop the code from running for an amount of time that varies based on how long it takes several .bat files which the excel macro calls to finish running. The macro simply uses setenvironmentvariables using a large series of for loops/if statements to change the variables "filename" and "savename". I need it to pause until each iteration of the .bat file finishes running or an alternate suggestion. I am already using the sleep function however some of these .bats take 10 seconds to run while others take about 50
Panicbutton 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.