I have code that I have written that loops through great without the taskexists command. Quick background: Code begins to execute then calls a function to open excel I then proceed to loop through again after excel is completed. I used a pause and that worked. When I have the taskexists it doesn't seem to recognize that excel is done all the time. It is very hit and miss which locks up the code and doesn't complete the entire program. I took the pause out because I don't want to have stuff like that hard coded if I can help it.
I have put a pause 1 in it and I have also cleared the variable I use to get the taskid for excel. I am using 95 and 2000 on 2 different machines. I have noticed I have many more issues with 2000 than 95 I have had to hard code some exiting commands because taskexit doesn't work with 2000.
Any help would be appreciated.
Thanks
Dan
I have put a pause 1 in it and I have also cleared the variable I use to get the taskid for excel. I am using 95 and 2000 on 2 different machines. I have noticed I have many more issues with 2000 than 95 I have had to hard code some exiting commands because taskexit doesn't work with 2000.
Any help would be appreciated.
Thanks
Dan