Tilt compensating a HMC5883 compass with a MMA7455 Accelerometer

Your welcome.
We never know how someone is going to react when we give them more than one link.
I gave some guy a bunch of links the other day and he replied "Why did you puke a bunch of links on my screen ?"
I do the same thing with you and you reply :

Thank you so much thats awesome. Exactly what i was looking for.

It looked like at least a couple of those had the tilt-compensation code.
When you install the Bildr tutorial library let me know if you have any issues like getting errors. The zip file screws up the file sctructure when you unzip it directly into your libraries\sketch folder. It creates TWO folders, one inside the other , both with the same name. You have to cut all the files out of the folder at the lowest level and move them up and delete the empty folder
so the "Examples" folder is at the first level and the examples at the second level. You'll see what I mean.