Is there anybody here that is extremely good at both JavaScript and VBA?
We are moving to Google Sheets for one very large Excel workbook which has an enormous amount of VBA. But as I am not too familiar with JavaScript, I am not sure whether even some of the code can be translated from VBA to Javascript with the functions it needs to do.
What the VBA code for a macro currently does is:
It searches through all the names in first two columns of the sheet (first name in one, surname in other), and then looks for the date across from that name in another column as to which message boxes should pop up.
Should the date have expired (i.e. now be in the past of current day), then it displays a message box to say this - the message box also lists the individual names as well as their date
Should the date be expiring within the next X number of days (i.e. in the future), then it displays a message box to say this - the message box also lists the individual names as well as their date
Should there be no date in the column across from the names, then it displays a message box to say this - the message box also contains the individual names.
Should there be no issue with any of the dates (i.e. doesn’t satisfy any criteria above), then a message box pops up to say this
It searches through all the names in first two columns of the sheet (first name in one, surname in other), and then looks for the date across from that name in another column as to which message boxes should pop up.
Should the date have expired (i.e. now be in the past of current day), then it displays a message box to say this - the message box also lists the individual names as well as their date
Should the date be expiring within the next X number of days (i.e. in the future), then it displays a message box to say this - the message box also lists the individual names as well as their date
Should there be no date in the column across from the names, then it displays a message box to say this - the message box also contains the individual names.
Should there be no issue with any of the dates (i.e. doesn’t satisfy any criteria above), then a message box pops up to say this
While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://www.freecodecamp.org/learn.
With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).
It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.
Please provide some example of what you’ve tried and I’m sure you’ll get more help.
I simply don’t know much about JavaScript at all.
It will need an array of some kind, but I simply don’t know many if any of the commands it would require.
Otherwise, this will be quite the challenge, if you do not have much experience with JS.
Please, feel free to go do more research, and return with specific questions. Outside of specific questions, JavaScript is just a programming language; you can do almost anything with it and some moxie.
Don’t worry, it’s clear this isn’t the place to come when you need help with something to do with JavaScript. JS is far different from VBA, so I wouldn’t even know how to start to code the answers to my questions; my question are also VERY specific as to what I would need it to do.