Hook
More breakout videos from this creator.
Have you ever typed a super long word like International Business Development or a massive number like 987654321 into an Excel cell? It's incredibly annoying hashtags or cut off text. Ugh, it looks so messy. And then you have to manually drag the column lines to adjust them one by one. What a complete waste of time. Let's completely automate it with a single line of hidden code that forces Excel to autofit your columns perfectly the exact split second you press enter. First things first, open up your messy Excel sheet. Now smash Alt plus F11 on your keyboard to open up the secret VBA developer back end. Don't worry, it's not as scary as it looks. On the left hand project menu, double click on the specific sheet you are working on right now. Look up at the top left dropdown menu that currently says General and switch it over to Worksheet. Just like that, Excel automatically drops in a clean block of macro code for you. Now, right inside that blank space, type this exact line: Cells.EntireColumn.Autofit. That's literally it. One line of pure automation magic. Now close out that code window, head back to your spreadsheet, and let's test it out. Type that long phrase International Business Development or your big no. 987654321 again and hit enter. Boom! The column instantly snaps wide open to perfectly fit the text on the fly. Delete it, type a tiny word like done, and watch the column automatically shrink right back down. Seriously, stop dragging column lines by hand forever. If this mind blowing trick just saved your workflow, drop a comment, smash that like button, and follow along for more insane Excel hacks!