Home Depot named Richard McPhail as its next chief executive officer, succeeding Ted Decker, effective next week. The company announced the change on Tuesday. McPhail has been the company's chief financial officer and has worked for Home Depot since 2005.

Decker, CEO since 2022, had been on temporary medical leave since August. The company said he has returned from leave but is stepping down as CEO. He will remain chair of the board of directors. Decker told analysts, "The board and I have agreed that now is the right time to move to the next phase of our succession plan."

Ann-Marie Campbell, currently senior executive vice president of U.S. stores and operations, will become president and chief operating officer. Jordan Broggi was chosen to succeed McPhail as CFO.

McPhail told CNBC's Becky Quick, "We're not going to change course." He said the company will keep focusing on professional shoppers such as contractors and will use artificial intelligence tools to encourage sales.

The announcement came alongside third-quarter results. Home Depot reported net income of $3.71 billion, or $3.72 per share, compared with $3.60 billion, or $3.62 per share, a year earlier. Excluding one-time items, adjusted earnings per share were $3.86. Revenue rose 4.9% from the year-ago period. Comparable sales rose 2.2%, compared with analyst estimates of 1.8%, according to StreetAccount.

Online comparable sales grew about 13%, the company's sixth straight quarter of double-digit growth in that metric. For the full year, Home Depot expects total sales to rise roughly 4.5%, the top of its previous range. It expects comparable sales to grow about 1.4%, and adjusted earnings per share to rise 2%.

Shares fell more than 3% following the announcement and the results. The source says the company has faced pressure from a sluggish housing market, higher mortgage rates and a more cautious consumer.