hi everyone
i want check using vba my aap (Tally.exe) is running or not,
if tally running then run the code "Go" if not running the first open tally.exe then run the code"Go"
tally.exe path = Z:\42766\Jan 2 Dec 2014\Tally.ERP9\tally.exe
thanx
hi everyone
i want check using vba my aap (Tally.exe) is running or not,
if tally running then run the code "Go" if not running the first open tally.exe then run the code"Go"
tally.exe path = Z:\42766\Jan 2 Dec 2014\Tally.ERP9\tally.exe
thanx
Use Code-Tags for showing your code :
Please mark your question Solved if there has been offered a solution that works fine for you
If You like solutions provided by anyone, feel free to add reputation using STAR *
It's not a native VBA function so you will have to use the Windows API.
Search for "VBA list all running applications" and review the results - you are going to have to understand the code so best to do a little reading as well as grabbing code you don't understand.
Thanx for reply
but cant understand
What do you not understand? Search.
I cant sort out that how to use Windows API with my requirement..
Hi,
You can also use WMI for such a task, which may be easier
With this function added you need only check for the application and run it if need be, thusPlease Login or Register to view this content.
Please Login or Register to view this content.
Don
Please remember to mark your thread 'Solved' when appropriate.
THANX
xlnitwit
i am using windows 8.1 x64 bit version
The code should be fine for that version.
Ur code is opening tally.exe again and again
i want if tally is open then code stop, otherwise open the tally
Hi
dear xlnitwit
code is working very fine now,
thanx alot
will add u repu+
You're welcome.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks