Nov 29, 2001 #1 ijr Technical User Apr 4, 2001 24 TR 1)Has the VBA built into excel capacity to make API calls? 2) If yes, is it possible to run a DOS batch file from an Excel VBA call If yes, how? I will appreciate all pointers Thanks in advance IJR
1)Has the VBA built into excel capacity to make API calls? 2) If yes, is it possible to run a DOS batch file from an Excel VBA call If yes, how? I will appreciate all pointers Thanks in advance IJR
Nov 30, 2001 1 #2 dsi Programmer Mar 13, 2000 964 US Sure. Do a search for Shell and/or ShellExecute in this forum. There are tons of samples. Upvote 0 Downvote
Nov 30, 2001 Thread starter #3 ijr Technical User Apr 4, 2001 24 TR Thanx dsi but I am new to the stuff. I did the search. However I guess there is no harm if you cite a short example down here. Sorry boss if this is too much. respects IJR Upvote 0 Downvote
Thanx dsi but I am new to the stuff. I did the search. However I guess there is no harm if you cite a short example down here. Sorry boss if this is too much. respects IJR
Nov 30, 2001 #4 dsi Programmer Mar 13, 2000 964 US Sure, here you go. You can use the help on vbMaximizedFocus to find other window options (vbHide, vbMinimizedFocus...). Code: Sub RunBatFile() Dim ret ret = Shell("C:\YourFile.bat", vbMaximizedFocus) End Sub Upvote 0 Downvote
Sure, here you go. You can use the help on vbMaximizedFocus to find other window options (vbHide, vbMinimizedFocus...). Code: Sub RunBatFile() Dim ret ret = Shell("C:\YourFile.bat", vbMaximizedFocus) End Sub