Under certain hypotheses on the Banach space X, we prove that the set of analytic functions in A u (X) (the algebra of all holomorphic and uniformly continuous functions in the ball of X) whose Aron-Berner extensions attain their norms, is dense in A u (X). This Lindenstrauss type result holds also for functions with values in a dual space or in a Banach space with the so-called property (β). We show that the Bishop-Phelps theorem does not hold for A u (c 0 , Z ′′ ) for a certain Banach space Z, while our Lindenstrauss theorem does. In order to obtain our results, we first handle their polynomial cases.2010 Mathematics Subject Classification. Primary: 47H60, 46G20. Secondary: 46B28, 46B20.