In this paper, by combining a modified extragradient scheme with the viscosity approximation technique, an iterative scheme is developed for computing the common element of the set of fixed points of a sequence of asymptotically nonexpansive mappings and the set of solutions of the variational inequality problem for an