Flexoelectric-induced voltage shift in a weak anchoring hybrid aligned nematic fiquid crystai cell is investigated theoretically. Based on the elastic theory of liquid crystal and the variation method, the equations for the bulk and the boundary of the cell are derived. By computer simulation, the dependence of the shift voltage on the sum of the ttexoelectric coefficients and the anchoring energy strength is obtained. As a result, a novel method to determine the sum of the flexoelectric coefficients by measuring the shift voltage is put forward.