I don't know why the code didnt work... the vbs didnt work either. The UDF works for me though. The UsingBattery should go in the UDF as is, with another UDF for all the other stuff.

Man KixKicks... you got it good right now with everyone chipping in. \:\)