Macros
Macros
especially appropriate solution (meaning there are no other Excel tools to more efficiently solve the
problem).
Cleaning and standardizing data: Excel provides tools for cleaning and standardizing data, but for
complex or repetitive tasks, macros can be more efficient. For example, recording a macro to change
the case of text in a selected range can save time and reduce errors.
Repeating a series of actions: Recording a macro to sort and filter a table, as well as update certain
cells, can automate a daily task and save time while reducing the risk of errors.
Research this hypothesis: "VBA is dead or dying." Post two articles and summarize their main
points. Identify any technologies/options that are potentially replacing VBA. Add your own
thoughts.
https://www.thespreadsheetguru.com/blog/are-vba-macros-dead
VBA will be a widely used automation solution for at least the next 10-15 years
VBA will never completely go away because too many companies have invested in it
Microsoft will continue to push JavaScript APIs as the new VBA replacement across all its
platforms (PC, Mac, Tablet, Browser)
VBA is still something that should be learned and can easily differentiate you from other Excel
users
https://www.reddit.com/r/vba/comments/exwe3k/is_vba_dying/
VBA can be used in the whole Microsoft package (Word, Power Point, Access, …)
The entire finance industry runs off VBA
VBA is way too integrated with way too many corporations world wide
As I was researching how to become a Data Visualization Developer, I found that Excel is still
considered a core skill for data scientists, and they largely recommend learning VBA and macros. I
was surprised because I thought that Excel was a tool for small companies who couldn’t afford to
have a developer to take care of data science. To the contrary, it is still completely relevant.
Demonstrate at least two methods for running a macro (other than the default Ctrl+ keyboard
shortcut) such as buttons or quick access icons. Show examples of each method in action and
describe when one might be more useful.
Running a macro from a button: we can add a button to the Quick Access Toolbar and assign the
macro to the button. This allows us to run the macro with a single click. This method can be useful
when we have a macro that we use frequently and want to have quick access to it.
Running a macro from the Developer tab: we can add a button to the worksheet from the Developer
tab and assign a macro to it. This method can be useful when we want to make the macro easily
accessible within the worksheet and don't want to use the Quick Access Toolbar or assign a keyboard
shortcut.
Use a spreadsheet from another class, assignment, or work example, and create at least one macro
to automate or accomplish tasks.
Sub FillTBD()
Dim i As Long
i=0
Do Until i = 100
ActiveCell.Offset(0, 0) = "TBD"
i=0
Else
i=i+1
End If
ActiveCell.Offset(1, 0).Select
Loop
End Sub
I used a simple macro to fill out the course codes where it wasn’t filled already, skipping when there
is not course name on the right column (we can’t see in in the screenshots, but it happens later in my
document to split certificate classes from electives).
If 100 rows go by without data on both columns, then it stops the macro.