I only succeed by banning myself from office snacks entirely (or only allowing a couple explicit healthy options).
For meals I only eat from the salad bar. It takes a few days to really set this this in motion, but then it's easier to maintain until I've cut the weight I want to.
If you've never succeeded before in losing weight it helps to have a personal trainer if you can afford it.