Blogs

Nick's picture

23. VBA Tips - Double Click


Here's a VBA tip on how to capture the Double Click event and do something useful with it.

Nick's picture

22. VBA Tips - Pause Code


This VBA tip is about how to pause code.

  • There are many reasons why you might want to pause code:
    • You might be waiting for a file to arrive and need to pause before rechecking
    • Maybe you've launched a batch file and it needs 3 seconds to run before you can continue

This is the code we'll use for this tip:

Nick's picture

21. VBA Tips - List Files In A Folder


This VBA tip will demonstrate how to list all the files in a folder.

Nick's picture

20. VBA Tips - Import A Text File


A lot of VBA code is written to import files into spreadsheets.

  • Today, we'll look at how to import a text file

Here's our text file, and we want to import it onto sheet1 of our spreadsheet starting at Range B7.

From this:

import-a-text-file

To this:

Nick's picture

90. Excel Tips - Replace The * Character


The * character needs special attention if you want to replace it in your spreadsheet

  • Replacing * with something will replace everything (not just the * character)

Here's a screen shot of our data in Excel:

replace-the-*-character

Nick's picture

19. VBA Tips - Log An Audit Trail


Logging an audit trail of your changes can be useful, and can be done with a small amount of VBA... 

Here's our data:

log-an-audit-trail

Here's a screen shot of what we're trying to achieve:

Nick's picture

18. VBA Tips - Write Your Own Excel Function


Writing your own Excel function is remarkably easy as this tip will show you.

Nick's picture

17. VBA Tips - Save A Copy Of A File Daily


Often during your working environment, you will need to track the history of a spreadsheet.

  • This tip will teach you how to seemlessly create a daily backup of your file
  • The file will be date stamped so that you can sort by date and easily find a file you're looking for when you need

Here's a screen shot of our VBA code:

Nick's picture

16. VBA Tips - Get A File Path


Using VBA, there is a quick and easy way to obtain the file path of a file and return it to a sheet

  • Use GetOpenFileName
  • This brings up a dialog box that allows you to browse your files and choose a file
  • You can then use that file path how you want

Here's a screen shot of our setup in Excel:

Nick's picture

15. VBA Tips - Track Changes By Adding A Time Stamp


Using VBA Events, there's a clever way to add a time stamp when cells change so that you don't need to remember whether you have updated it or not:

Nick's picture

89. Excel Tips - Multiply Formulas By 100


Most people know that you can multiply numbers by 100 using paste special, but not many people know that you can use the same methodology to multiply (or divide) formulas by 100 (or any number) as well

Here's what we have: number2 =  number1 +3

multiply-formulas-by-100

Nick's picture

88. Excel Tips - Align Shapes


This Excel Tip is about how to align shapes:

  • Suppose you have added 3 buttons and they're out of line.
  • How can you align them ?

Here's a screen shot of what we have, and what we want to have:

align-shapes

Here's how to do it

Nick's picture

01-May-2009 - ExcelExperts.com Update


May 2009 Stats update from ExcelExperts.com

Nick's picture

87. Excel Tips - Turn Rows into Columns - TRANSPOSE


Suppose you have data in rows, and you want to convert it to columns, how can you do that in Excel ?

  • Use the TRANSPOSE function
  • TRANSPOSE will flip data 90 degrees to convert row data to column data and vice versa.

Here's a screen shot of our data in Excel:

Nick's picture

14. VBA Tips - Turn Off Message Boxes Whilst Running Code


There are certain message boxes that will popup by default when you're running code.

Nick's picture

13. VBA Tips - Enable / Disable Events


In VBA you can use events to capture certain things that happen on a workbook

Nick's picture

86. Excel Tips - Find Broken Links



Finding broken links can be tricky if you don't know how they're caused.

In this Excel Tip, I will show you how to recreate a broken link, and give you some insight on how to fix them.

The most common type of broken links are range names..

To recreate a broken link, follow these steps:

Nick's picture

85. Excel Tips - Remove Non Numeric Characters


This tip is about removing non-numeric characters from a cell's value:

Nick's picture

84. Excel Tips - Select All Text In A Cell


Here's how to select and copy all the text in a cell:

Nick's picture

83. Excel Tips - Format Text In A Cell


This is a handy tip that a lot of people don't know:

  • You can actually format the text within a cell

Here's a screen shot of what it looks like:

format-text-in-a-cell

Here's how to do it:

Nick's picture

82. Excel Tips - Copy Sheet To New Workbook


You often need to create a copy of the sheet you're currently working on

  • One way is to saveAs another file name, then delete the extra sheets... but there is a better way

Steps:

Nick's picture

81. Excel Tips - Add a Link To Email


Adding a link to an email address is simple in Excel:

  • All you have to do is to type in the email address into the cell, and it automatically adds a hyperlink that will launch your mail program and compose a mail addressed to the address you typed in

You can then right click and edit the hyperlink, adding a subject, or changing the text that is displayed whilst keeping the link the same.

Nick's picture

80. Excel Tips - Toggle The Screen Lock In Function


This tip is something you would never discover on your own, and can be a massive annoyance reducer:

  • Pressing F2 toggles between scrolling into the formula and scrolling on the sheet

It's not immdiately obvious what I am talking about, so here's an example.

Here's our data in Excel:

Nick's picture

79. Excel Tips - Nth Largest Value In A Range


Here's a tip on how to find the Nth largest value in a range, and use it to sort a list of numbers:

Nick's picture

78. Excel Tips - Why Is My Excel File So Big ?



Excel files seem to just get bigger and bigger often balooning in size at the blink of an eye, but how do you find out where all the extra file size is coming from ?

  • There is a way to separate out each object in your file, and examine it's contribution to the overall file size

Here's a screen shot of our innocent-looking Excel file:

Nick's picture

77. Excel Tips - Put Chart On A New Sheet


Today's tip is a simple one on how to move a chart

  • By default, Excel adds a chart to the current worksheet
  • You can easily move a chart off a sheet and onto it's own chart worksheet

Here's a screen shot of how our chart looks in Excel:

Nick's picture

76. Excel Tips - Get Tick Or Cross


You want to use a special character in Excel, but you don't know how to find it:

Nick's picture

75. Excel Tips - Helpful Hints On The StatusBar


There is a way to get some simple information quickly and without having to write formulae :

  • Use the statusbar (the thing at the bottom)

Here's a screen shot of our data in Excel:

helpful-hints-on-the-statusbar

Nick's picture

74. Excel Tips - Dynamic Charting


When you add a chart, it's not obvious at all how to construct it so that new additions to your data are automatically added to your graph

Nick's picture

73. Excel Tips - Fix Corrupt Spreadsheet



Today's tip is one of the most useful tips I will ever write.

Syndicate content