No, we can't help. Not without knowing what symptoms you are experiencing.
You've told us your problem without describing the symptoms. Would you
expect a car mechanic to be able to fix your car if all you told him was
that it's got a problem?
Tell us the error message, if any, you are getting. Give us an idea of what
line of code is raising the error. (hint - comment out all the lines except
the first. Run the code. If no error, uncomment the next line and run it.
Repeat until the error occurs)