this post was submitted on 20 Apr 2026
19 points (88.0% liked)

Programming

26625 readers
151 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Alright, so I'll get laughed at here, but one of my 'goals' for work this year is I wanted to take the 4 hour VBA course on youtube and then write a small program after it that does something.

Before you laugh at me using an outdated language, I only chose it because a co worker suggested learning it, and we do use some VBA coded macros in our spreadsheets. We're not a very up to date company.

The reason I never get anything done with learning programming is I never know what to do . And if I do come up with something to do, it will be WAYY too complex over my head, i'll fail at it, then never touch it again. If it's too simple, I won't even want to bother. (Yay ADHD)

So I'm just looking for a couple suggestions for a fun little program to make (and consider the goal 'done'). I know calculators of some sort are an option...I can't really think of anything else. I guess it doesn't actually have to be a useful program but it would be cool if it was.

you are viewing a single comment's thread
view the rest of the comments

Here's an idea:

  • find a Excel workbook you / your team uses a lot.
  • use VBA to add a button onto the main sheet labeled something like, "Lock".
  • when someone clicks it, that sheet gets locked from edits ("protected") and the label on the button changes to, "Unlock"
  • When Unlock is clicked, the protections are removed

A couple of notes:

  • practice this on a COPY of the sheet you all rely on
  • know that VBA has a ton of really odd things about its language -- things that no other language (that I know of) does

So learn as you go, build up your confidence, but keep in mind that not everything you learn will apply to other newer languages you might eventually learn.

Have fun, be patient, ask for help whenever you get stuck!