Mar 31, 2005 #1 dBjason Programmer Mar 25, 2005 355 US I'm trying to autofit column width through VBA (like when you double-click inbetween columns). Any ideas?
I'm trying to autofit column width through VBA (like when you double-click inbetween columns). Any ideas?
Mar 31, 2005 #2 FXP Programmer Sep 17, 2004 135 US Try: Cells.Select Cells.EntireColumn.AutoFit Upvote 0 Downvote
Mar 31, 2005 #3 S SkipVought Programmer Dec 4, 2001 47,492 US Hi, all you need is... Code: Sheets("yourSheetName").cells.entirecolumn.autofit You so NOT need to use the Select or Activate methods! Skip, [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get... Neopolitan Blownapart! Upvote 0 Downvote
Hi, all you need is... Code: Sheets("yourSheetName").cells.entirecolumn.autofit You so NOT need to use the Select or Activate methods! Skip, [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get... Neopolitan Blownapart!