Hello everyone, new to forums. Ive done some searching around but I can not find a real good answer as to a) why this happens, and b) how to work around it. Code first, problem after that.
First, I know, my code is not the cleanest in the world. I accept that, I understand that. But that isnt really the issue. Here is what we deal with. Its a simple Time Sheet. It pulls all the hours for the employees into this Master Sheet, Hit the Macro button, boom, easy to do payroll. However we have 1 guy (Jonathan) who works remotely. He gets paid based on what he bills for.
We use Spiceworks for our ticket system. My code breaks when dealing with Jonathan. The way it works is, I export the Spiceworks file, saved as Excel. The Macro is suppose to run where it breaks apart the Hours and Minutes, then gives me the total at the bottom of the spiceworks Excel sheet. Then the Macro is suppose to pull that information back into the Master Template and fill in Jonathan's stuff.
Easy flow of how it works:
1) Run Macro
2) Get to Jonathan
3) Window pops up to select Spiceworks File
4) Do Hours and Minutes stuff on the Spiceworks file
5) Pull info back to Template
6) Resume with everyone elses stuff.
How it actually works
1) Run Macro
2) Get to Jonathan
3) Window pops up, select SW file
4) Do Hours and minutes stuff on SW file
5) Macro STOPS - Does not pull information back over.
Its as though when having to do it on another sheet, the system forgets that a macro was working and running.
Any thoughts on how to stop this from happening?
Bookmarks