I haven't tried it, but I'm sure you could use equal amounts of coconut oil in lieu of the butter in peanut butter bars. I would use refined coconut oil, unless you want a slight coconut taste.