Using The Macros On The ExcelTips Website (Microsoft Excel)
Using The Macros On The ExcelTips Website (Microsoft Excel)
https://excelribbon.tips.net/ExcelTipsMacros.html 1/2
27/11/2020 Using the Macros On the ExcelTips Website (Microsoft Excel)
Just like with books, mine isn't the only course out there—if you do some searching and poking about, you'll be able to find one
to fit the way you learn.
When you decide to start using macros with Excel, there are two ways you can do it: You can either record a macro (using
Excel's built-in macro recorder) or you can create a macro from scratch. The following two tips will help you out with both of
these approaches:
Recording a Macro (https://excelribbon.tips.net/T5683)
Writing a Macro from Scratch (https://excelribbon.tips.net/T13520)
If you want to use any complete macros found on the ExcelTips sites, it is best to use the "from scratch" approach. You can tell if
a macro is "complete" by whether or not it has the beginning "Sub" line and the ending "End Sub" line (in the case of a
subroutine) or the beginning "Function" line and the ending "End Function" line (in the case of a function). For example, the
following is a complete macro:
A = Trim(Str(X))
ToNum = A
End Function
To use such a macro, you would copy all the lines from the beginning "Function" line through the ending "End Function" line
and paste it into the Visual Basic Editor.
If any of this still sounds confusing to you, then you really need to get ahold of a VBA tutorial (or a course) and start learning
about macros. Remember—learning about macros takes time and patience, just like learning any other skill. Once you learn it,
however, the way you use Excel will never be the same again and you'll get much more out of the program.
https://excelribbon.tips.net/ExcelTipsMacros.html 2/2