Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excel では、列ヘッダー (実際には 2 つの列ヘッダーの間の線) をダブルクリックすると、左側の列の幅が最も長いテキストの長さに合わせて拡大されます。これをプログラムで行う方法はありますか?C# および .Net フレームワークで Excel 2010 を使用しています。
私はあなたが使用できると信じています:
Rng.Columns.AutoFit()