Some inequalities of Gr\"uss' type for vectors and continuous functions of selfadjoint operators in Hilbert spaces, under suitable assumptions for the involved operators, are given. Applications for power and logarithmic functions are provided as well.