Office Depot (NASDAQ: ODP) has made progress in its mission to recast its business to be competitive in the internet era. The company still has a long way to go, and its sales sank over the first six months of the calendar year. Despite that, investors seem happy with new CEO Gerry Smith and the fact that the company may be shrinking, but its profitability trend has moved in the right direction. Image source: YCharts. What happened After closing 2016 at $4.52, shares in Office Depot rose to $5.64 at market close on June 30. That's a gain of $1.12 through the first half of the year, or just under 25%, according to data from S&P Global Market Intelligence. That's a major change from the first six months of 2016, when shares in the company fell by 44% because its merger attempt with rival Staples (NASDAQ: SPLS) failed. Office Depot has struggled as stores have become less relevant to retail shoppers. Image source: Office Depot. So what In March, Office Depot reported Q4 results including net income from continuing operations of $55 million, or $0.10 per diluted share. That number benefited by $15 million from an extra week in the quarter, but even factoring that out, $40 million would be an improvement over Q4 2015, where net income from continuing operations was $31 million, or $0.06 per diluted share. Momentum continued in Q1 2017, when net income from continuing operations was $74 million, or $0.14 per share. That's up from $62 million, or $0.11 per share, in the same quarter a year ago. "I am very pleased that we continued our positive momentum into the new year and delivered a strong earnings performance in the first quarter," said Smith, who noted that the company has sold it South Kore business while entering a deal to divest itself of operations in Australia and New Zealand. "Going forward, our focus is on executing against our strategic initiatives to grow the North American business." Now what Office Depot has somewhat stabilized its business and slightly improved its profit picture, but sales are still moving in the wrong direction. The company probably has too large a retail footprint, and its efforts to improve its digital business remain a major question mark. In addition, the company still faces a major unknown as Staples, its failed merger partner, recently made a deal to go private. The first six months of the year show that the market likes the direction Office Depot has moved in. But the company has to show that at some point sales will stop falling, or else it will give back these gains.10 stocks we like better than Office DepotWhen investing geniuses David and Tom Gardner have a stock tip, it can pay to listen. After all, the newsletter they have run for over a decade, Motley Fool Stock Advisor, has tripled the market.* David and Tom just revealed what they believe are the 10 best stocks for investors to buy right now... and Office Depot wasn't one of them! That's right -- they think these 10 stocks are even better buys. Click here to learn about these picks! *Stock Advisor returns as of July 6, 2017Daniel Kline has no position in any stocks mentioned. The Motley Fool has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy.