I suppose you need to evaluate if programming is actually something you enjoy doing. It may turn out it isn't, that's ok. Find something else you enjoy doing and pursue that. You may even be able to find that this seemingly unrelated hobby/skill could be enhanced with programming skills, and you can use that to motivate you to program.
If you believe you can enjoy programming, then the best way to motivate yourself is to find some project that really motivates you. Do you like making games? What part of making games do you like? Or do you enjoy web development? These are two drastically different fields, and there are tons of other fields unrelated to these two as well. For example I enjoy the nitty-gritty details of computer science, scientific computing, and in general high performance computing. As a result I find myself much more motivated by projects which ask me to design/implement algorithms or improve the efficiency of a chunk of code vs. trying to write a game or make a webpage. When I do end up with a project like these latter two, I try to apply my strengths and interests to make the project more enjoyable. For example, in a webpage I'm currently working on I'm trying to design the interface to be concise and efficient to use. There's plenty else to frustrate me with web development, but as long as I can focus on something that excites me I keep pushing through the project.
Lastly, understand that learning to program is a very long process, arguably longer than a lifetimes work. The hardest parts are definitely getting started, but don't let that discourage you. Take a break if there's a problem which you can't figure out or is frustrating you. Ask others for help and advice if needed.