2/13/2023 0 Comments Vbag update![]() This is the simplest example of getting the current date. You may be getting a different date at the time you run this code, based on your system date. Note that, the date shown here in the screenshot is the date I have run this script at. You’ll be able to see a Message Box as shown in below screenshot with the current date. Step 6: Hit F5 or run button manually to Run this code. Step 5: Use MsgBox to be able to see the current system date under Message Box prompt. You just need to add DATE in order to assign the date value. ![]() Step 4: Using the assignment operator, assign a value of the current system date to the variable newly created. Since, we are about to assign a date value to the variable, make sure you are defining it as a date. Step 3: Define a variable named CurrDate which can hold the value of the current date. Step 2: Define a sub-procedure to write create and save a macro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |