Excel VBA Introduction Part 26 - Constants and Enumerations (Const, Enum)

  Рет қаралды 64,574

WiseOwlTutorials

WiseOwlTutorials

Күн бұрын

Пікірлер: 45
@houstonvanhoy7767
@houstonvanhoy7767 7 ай бұрын
Andrew: This video just blows my mind! Thanks.
@WiseOwlTutorials
@WiseOwlTutorials 7 ай бұрын
Happy to hear you enjoyed it!
@jmathew6988
@jmathew6988 2 жыл бұрын
Excellent Tutorial! Best part is the the examples used. Gives you 200% understanding of the topic, if not more. Thank you.
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
Thanks J!
@khalidalisawi8037
@khalidalisawi8037 2 жыл бұрын
great tutorial, When I see it. and left all videos which I followed before and follow you
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
Thank you Khalid!
@timusolds3537
@timusolds3537 10 жыл бұрын
Dear WiseOwl!!! Thank you very much for you videos!!! Many thanks from KZ and DE!!! Your Videos are just awesome!!! Thanksssss!!!!!!!!!!!!!! A
@adamderose9468
@adamderose9468 9 жыл бұрын
Great tutorial; very easy to understand and in-depth at a good pace for me. I coded along and replayed tons of times.. this and the Arrays tutorial has helped me broaden my beginner's skill set. Thank you!
@tavanix
@tavanix 7 жыл бұрын
Best VBA totur ever! Thank you very much WiseOwl, and many thanks to Andrew personnaly!
@SyedKollol
@SyedKollol 10 жыл бұрын
This is the first time I really liked any video on these particular topics. Excellent work and thanks a lot.
@abdulnayazh2366
@abdulnayazh2366 10 жыл бұрын
All your videos are awesome man thanks....
@nazaserh
@nazaserh 3 жыл бұрын
Simply brilliant 👏
@WiseOwlTutorials
@WiseOwlTutorials 3 жыл бұрын
Thank you Serge!
@vk452937
@vk452937 7 жыл бұрын
Excellent videos. Thank you for the tutorials.
@MagnusAnand
@MagnusAnand 8 жыл бұрын
Excellent video!!
@Tan_Rainbow
@Tan_Rainbow 4 жыл бұрын
Excellent videos
@tomash9785
@tomash9785 9 жыл бұрын
Oh yeah finally easy to follow video after tougher ones :)
@thomasfergusen5144
@thomasfergusen5144 4 жыл бұрын
great series
@AmitSharma-po1zb
@AmitSharma-po1zb 5 жыл бұрын
Simply Awesome... :)
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
Thanks Amit!
@IndiaDefenceWing
@IndiaDefenceWing 3 жыл бұрын
I follow your every single video. Currently I am struggling with UIAutomation in VBA. Could you please create some videos on it and help me with any material if available.
@WiseOwlTutorials
@WiseOwlTutorials 3 жыл бұрын
Hi Sunil, I don't have any experience with UI Automation so it's unlikely that we'll have any videos on that topic, sorry!
@IndiaDefenceWing
@IndiaDefenceWing 3 жыл бұрын
@@WiseOwlTutorials Thanks Andrew. The best part about you is you always reply. Thanks Andrew and keep up the excellent work. It encourages us as well to learn beyond limits.
@WiseOwlTutorials
@WiseOwlTutorials 3 жыл бұрын
@@IndiaDefenceWing Thank you Sunil, I appreciate the support!
@adambooth3858
@adambooth3858 9 жыл бұрын
Great tutorial. Thanks.
@SemperFiParatus
@SemperFiParatus 8 жыл бұрын
I'm loving your tutorials. They are informative and accurate. I personally think that if you reinforced your examples by including features learned in earlier models that you'd have a greater following. In every video so far you have failed to use the the [Procedure View] / [Module View] buttons in the bottom left corner of the VBE which really helps me focus on the task at hand by hiding separate modules. The following function would have done the exact job you wanted in the circle example. I am surprised you never used it: WorksheetFunction.Pi Brilliant work so far!
@SemperFiParatus
@SemperFiParatus 8 жыл бұрын
It's great! The resource is really helping me improve my skills. It would be rgeat to have a set that demonstrates how to build an excel application using VBA so that users can see something built from scratch that has a real world function and is useful like an accounting program that does double entry T accounts. Students would be able to recode it to their needs and learn how valuable VBA is to their job. Your teaching style is brilliant.
@Gk2810_
@Gk2810_ 9 жыл бұрын
very informative ... it helped me a lot ..
@tanmoyd
@tanmoyd 8 жыл бұрын
Very informative video - I can't stress it more! Can you please do a video on Constants, Variables and Enums while using VBA for PowerPoint? I really need to know. I am experiencing issues while using Constants for Colors in PowerPoint VBA.
@tanmoyd
@tanmoyd 8 жыл бұрын
+WiseOwlTutorials Thanks a lot! I understand :)
@mahdjoubsofiane4005
@mahdjoubsofiane4005 3 жыл бұрын
As usually fantastic style of description I have only one question : What is the key difference between enumerations and collection ! And many thanks in advance
@WiseOwlTutorials
@WiseOwlTutorials 3 жыл бұрын
Thank you Mahdjoub! There are many differences between enumerations and collections. You might find the video on collections useful here kzbin.info/www/bejne/bpelhoiJp9KmhpY I hope it helps!
@scotolivera8207
@scotolivera8207 5 жыл бұрын
Thanks a lot.
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
You're welcome, thanks for watching!
@DittoGlen
@DittoGlen 9 жыл бұрын
In regards to Pi constant, WorksheetFunction.Pi is also available (at least Excel 2010 its there)
@krn14242
@krn14242 9 жыл бұрын
Thank you
@pallikishor
@pallikishor 7 жыл бұрын
Hi Andrew, I have got stuck at one point , need your help. actually I want to pass variable name through cell reference in sheet. If that variable is present in the declared list of the module then corresponding value should come into the reference cell. can we acheive it anyway? If yes ,Please guide me. It will be really helpful. Thanks in advance.
@danielpenteado
@danielpenteado 10 жыл бұрын
You rock!! Thks!
@victoropere2107
@victoropere2107 6 жыл бұрын
awesome
@stephenhammond1745
@stephenhammond1745 5 ай бұрын
I have started using enums and classes and find they make coding easier. Wondering if it is possible to use an enumeration in a WITH statement. Eg Define an enum named Address and then say With Address....? Is this possible?
@WiseOwlTutorials
@WiseOwlTutorials 5 ай бұрын
Hi Stephen! Unfortunately not, an Enum is just a set of related constants. A With statement needs to work with an object. You could use a Type to do the sort of thing you need. A basic example would look like this: Public Type Address Street As String Town As String Postcode As String End Type Sub With_Address() Dim a As Address With a a.Street = "Some street" a.Town = "Some town" a.Postcode = "AB12 3CD" End With End Sub You could use an Enum to set the datatype of one of the members of the Type like so: Public Enum CountryEnum Australia = 1 UnitedKingdom = 2 UnitedStates = 3 End Enum Public Type Address Street As String Town As String Postcode As String Country As CountryEnum End Type Sub With_Address() Dim a As Address With a a.Street = "Some street" a.Town = "Some town" a.Postcode = "AB12 3CD" a.Country = UnitedKingdom End With End Sub I hope it helps!
@stephenhammond1745
@stephenhammond1745 5 ай бұрын
@@WiseOwlTutorials Ok. I had read somewhere that enums were technically considered objects but maybe that's not true or they just can't be used like other objects. I've just started looking into Types....still fairly new at this (68, retired, and using VBA as a way to keep my brain engaged). Thanks a lot for taking the time to reply. Your feedback/suggestions are very helpful.
@WiseOwlTutorials
@WiseOwlTutorials 5 ай бұрын
@@stephenhammond1745 It's super impressive that you're in to class modules and types already - it took me ages to wrap my head around those when I was getting started!
@stephenhammond1745
@stephenhammond1745 5 ай бұрын
@@WiseOwlTutorials I took me a while to understand that these were aids to coding rather than ways of gathering user input when the code was running. Once I realized that, using them was fairly easy. Now it's more a matter of deciding which to use in any particular case.
@artistryartistry7239
@artistryartistry7239 2 жыл бұрын
Why combine one concept people are trying to learn with something more complex like the area of a circle? Why not pick an example everyone understands intuitively, so they're not trying to learn the concept while dealing with additional unnecessary complexity? Why not use something like a tax rate or hours in a day, vs. Pi and area of a circle? Great tutorial, but keep it as simple as possible.
Excel VBA Introduction Part 27.1 - Creating Word Documents
58:33
WiseOwlTutorials
Рет қаралды 179 М.
Excel VBA Introduction Part 35 - Class Modules
59:32
WiseOwlTutorials
Рет қаралды 158 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 43 МЛН
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 14 МЛН
Excel VBA Introduction Part 25 - Arrays
1:00:24
WiseOwlTutorials
Рет қаралды 229 М.
Better VBA 4 - Using Enums (Enumerations) in VBA
9:26
codekabinett.com/en
Рет қаралды 9 М.
Watch these 28 minutes if you want to become an Advanced VBA user...
29:01
Excel Macro Mastery
Рет қаралды 55 М.
Enums(Enumeration): The Key to Cleaner, More Efficient VBA Code
9:58
Excel Macro Mastery
Рет қаралды 32 М.
Excel VBA Introduction Part 15a - Find and FindNext
22:58
WiseOwlTutorials
Рет қаралды 159 М.
Excel VBA Introduction Part 24 - File Dialogs
36:25
WiseOwlTutorials
Рет қаралды 78 М.
Excel VBA Introduction Part 18 - Creating Functions
19:57
WiseOwlTutorials
Рет қаралды 158 М.
7 Simple Practices for Writing Super-Readable VBA Code
13:03
Excel Macro Mastery
Рет қаралды 68 М.
Excel VBA Introduction Part 17 - For Each Loops
31:47
WiseOwlTutorials
Рет қаралды 111 М.
Excel VBA Introduction Part 22 - Files and Folders (FileSystemObjects)
48:33
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 43 МЛН