Step to Create a Basic Macro:
1)open up a new book, bring up the Developer tab (If you don't have the Developer tab, you can go to File, Options, Customize Ribbon and makes sure that the Developer tab is selected.)
2)open VBE editor (Developer -> Visual Basic or ShortcutKey: ALT+F11)
3)Add Module (Insert -> Module, Module is nothing but a workspace to writer our code)
4)Write/copy below code in Module workspace and click on RUN(F5)/PLAY option
Sub MyFirstMacro()
MsgBox "Welcome to MYTECHIE EXPERT BLOG"
End Sub
5)You'll get "Welcome to MYTECHIE EXPERT BLOG" output in message box
In order to do anything interesting in a program, we must have the ability to store and manipulate values. What allows us to do that are what we call variables. Now a variable, simply put, is just named data storage. Now Java is a strongly ‑ typed language. Now what that means is that when we declare a variable like, in this case, we have a variable named data Value, we have to specify the type of that variable, in this case, it's what we call an int, something that can store integers. So, what that means is that the data Value variable can only store things that are compatible with the type int. As we go through the course, we'll talk about this idea of one type being compatible with another. Now when we declare a variable, we can, of course, then assign a value to it, so our variable data Value now holds the value 100. Now when we use variables, we can do it the way we've done here where we declare it, then assign it, or as a matter of convenience, we can declare them a...
Comments
Post a Comment
We appreciate your valuable Suggestions/Feedback