Hi Everyone. I hope you enjoy the video. You can download the code from the link in the video description.
@konatesiakamounir87044 жыл бұрын
I have hours of work how to calculate it because when I use the same procedure as for the sums it gives me 0
@budiyanto15314 жыл бұрын
Excellent
@johnwaterbury50464 жыл бұрын
This was outstanding information - thank you
@philotine3 жыл бұрын
I simply cannot find this. Where is this video description?
@dimmak82063 жыл бұрын
Help please, The link to your code isn't showing me anything but a blank page
@albertbatfinder52404 жыл бұрын
Been writing code since punched cards, and I can tell any beginners out there that this lesson is packed full of good programming principles. Paul is a natural born educator.
@Excelmacromastery4 жыл бұрын
Thanks Albert.
@tomharrington14534 жыл бұрын
I second that. I have had to watch this in 10 minute sessions,. Its a lot to take in.
@oneanddone79924 жыл бұрын
I'm fluent in VBA, and I second the motion this educator does a very good job. Also, dictionaries are neat to use, and as my mentor told me years ago, they're the lazy person's 2 dimensional array.
@Elmar2k833 жыл бұрын
I have been programming for years but these videos are hot stuff :)
@hadibq2 жыл бұрын
So true!
@RoyalGoal Жыл бұрын
Never thought of saving the Excel settings code as a class module, but that's really efficient and found that really helpful!
@rrrprogram86673 жыл бұрын
I Madara the ultimate king of the world.... Again declares you as the king of VBA
@noisearchitect3 жыл бұрын
Hi, thank you so much for your great VBA tutorials. Becuase of you, I just got a raise on my job.
@Excelmacromastery3 жыл бұрын
Nice work!
@mrashid2294 жыл бұрын
I am an Excel VBA enthusiast and have come across lots of resources online and grateful to all contributors. However always realized lacking a professional approach that is essential to maintain integrity and maintainability of an application. Often tried to develop some standard by myself but realize shortcomings quite often. Bundling so many vital issues into this small(!) application and describing those in such a simple way, you have given the hope and confidence to learners/developers to grow faster in becoming a Pro. Will go through all your resources eventually. Not only learning new features but applying those in the right place is important. Your teaching approach and delivery is unparallel!
@imronnesia5170 Жыл бұрын
Finally i found my vba hero here. As a the self taught beginner with nothing resources, no teachers, nothing basic vba knowledge, i am learning from scratch by Google.. after many weeks and months, now you turns me on it. I don't have any confidence before, since didn't get a right direction how to write good code structure, handling errors, manage dynamic rows column condition etc. By now.. i'll erase all my silly code - code for my self needs - and starting to rebuild them from zero. subscribe your channel. Even i am not native english speaker, it's easy to understand all your explain. thank you
@Snowy04210 ай бұрын
I've been programming self taught vba for 15 years. And this video still had plenty of tips that I found useful and will start to apply. Thank you
@cgd103711 ай бұрын
Excellent video. Thought I knew VBA however it is an example of knowing what you know and not knowing what you don't know. Thanks Paul.
@stevec18353 жыл бұрын
Wish i had your brain. My head is spinning, but i will keep trying. Thanks for these great tutorials....
@redfeather22sa2 жыл бұрын
Brilliant Video & service you give sir !! I cant thank you enough !! Thumbs Up !!
@dewamanandhar50294 жыл бұрын
This is great video. You are not just teaching Excel VBA, you are teaching the programing principles that will go long way in every programming.
@Excelmacromastery4 жыл бұрын
Glad it was helpful!
@pegwinn2 жыл бұрын
Thank you again. After years of doing the macro recorder and begging for help on message boards I am finally determined to learn and hopefully (eventually) contribute to the boards. I have a huge macro system and there is an intermittent issue. I am determined to figure it out and a guy at mrExcel shared your link. I’m hooked. Thank you for making these tutorials.
@Excelmacromastery2 жыл бұрын
Happy to help!
@canews8971 Жыл бұрын
Best teacher on KZbin. My question is why store the functionality settings (events, calculations, etc) as a class rather than a module?
@rrdoane0710 ай бұрын
Unbelieveable there are a lot of codes that you can use to archive something and you showed real neat codes at the end. I haven't yet run with real world data
@mangobrother2 жыл бұрын
A great video. Will come back to it often for my education. Paul, you are a fantastic teacher.
@jimfitch4 жыл бұрын
Terrific lesson, Paul, thank you. I have built several Excel applications during past few years & thought I had good techniques & habits, but this lesson identified things I can/should do to make them (much) better. I appreciate your instruction very much.
@Excelmacromastery4 жыл бұрын
Thanks Jim. Glad you liked it.
@rrrprogram86674 жыл бұрын
Is there is 100k like button... I just want to hit it over and over agiann..... Best video so far.. Thanks master
@Excelmacromastery4 жыл бұрын
Thanks very much. Glad you like it.
@broleather58514 жыл бұрын
Tottaly agree with you
@MustafaKalafat Жыл бұрын
37:15 thanks for the nostalgia as i remembered my first coding in 1990 using gwbasic in a 80286 machine. i used gwbasic by the end of 1998 to perform calculations in my fluid mechanics homeworks. :)
@twgrisham4 жыл бұрын
Paul, this is by far the best comprehensive video I have come across for building a real-world application from scratch in a generic organized fashion that limits the scope of coding/debugging to focused building blocks. That's a lot of words to say thanks!
@Excelmacromastery4 жыл бұрын
Thanks for the feedback Thomas.
@noambrand3 жыл бұрын
Great Video. Been coding VBA for years with less effective solutions like using constants instead of Enum , multiple looping instead of dictionary. Finally understood how to use classes. You are the best guide to VBA. Thanks Paul! P.S I prefer to turn Debug.Assert on and off and not delete it in the release build by using: Select Tool->VBAProject Properties from the VBA menu: Conditional Compilation Argument: Debugging=1 # If Debugging Then Debug.Assert some condition # End If
@midmindconsulting12982 жыл бұрын
Super..You are really a STAR.
@RajPatelMansuria4 жыл бұрын
The Enum for storing Column positions is an awesome technique and going to be a life saver for me. Thanks. You are doing a great job. Keep Going.
@tomharrington14534 жыл бұрын
Who knew? I have never seen that before. Mind blown.
@haragorn884 жыл бұрын
Awesome Paul. Even after doing the VBA Handbook course still learn heaps more in everyone of your videos and blogs. This time using enum instead of constant and using class module for turning off and on functionality. And, you can never get enough on the dictionary. Great teaching technique of yours to show "You could do it this way but this way is better and this is better again!"
@Excelmacromastery4 жыл бұрын
Thanks Craig. Glad you enjoy my resources and handbook so much.
@seamushand84393 жыл бұрын
I really love the programming structure and checks and balances and applied to something simple enough that the structure of the code is evident. Thank you
@NiteLynr4 жыл бұрын
So, just found this video by accident and I have to say that it's 3/4 of an hour that is going to save me immeasurable amounts of time in the future. I've been working with spreadsheets for decades and vba for longer than I care to remember but some of this video opened my eyes wide. I've been doing things the long way apparently (to the point where I re-opened a report I made at the weekend and halved the length of the code!) I've always gone down the step-by-step route to creating vba but you've given me a few extra tools that will make things much smoother in future. On a side note: nice to hear a local(ish) accent giving advice on here, from 'Up North', myself. Plus one kudos for the C64 reference...I remember those days well, the C64 Bible (Programmer's Reference Guide) permanently resided in my schoolbag.
@Excelmacromastery4 жыл бұрын
Thanks for the feedback. Glad you found the code useful. C64 - Those were the days.
@OmkarUmbre4 жыл бұрын
Khatarnak boleto ekdum Zakkas.
@adamwstbrook4 жыл бұрын
I've learned a ton from this video that covered a range of topics by building an application from scratch. I love the trick to update the dictionary value. I'll definitely be utilizing enum and the settings class. I used to use Application.ScreenUpdating = False, Application.Calculation.... etc and reset them to True at the end. Class modules are still foreign to me, but I'll first utilize your template! Thank you again!
@Excelmacromastery4 жыл бұрын
Thanks for the feedback Adam. Glad you liked the video.
@giorgiomya45463 жыл бұрын
✔ It is very impressive the clarity you possess to write an entire application in one go!. Thank you for sharing your knowledge in such a professional manner.👏👏👏👌
@stewartlittle79312 жыл бұрын
Great that you mentioned the Commodore 64 and Spectrum! I had a Spectrum 48k and I can remember writing simple BASIC programs. I can also remember computer studies at school where we would write out our programs hard copy and then they would be sent to the Hatfield Polytechnic college where they would be entered in to their computers and run. We would then get our programs sent back to us as a stack of punch cards errors and all!
@billroberts28084 жыл бұрын
Enum component was great! Been using VBA since Access 3.0. Started Excel VBA reluctantly but out of necessity for a couple of clients. Your videos are very well structured and most informative. Some of the tips and tricks you share have become basic design components in many of my desktop platforms. Thanks for all you do! Best regards
@peterjames80462 жыл бұрын
Thanks Paul, another great video. Learning a lot since i found your youtube channel
@tjchance40234 жыл бұрын
Some very useful techniques applied here, as well as your english speaking easy to understand. I'm not a english speaking person, so important part for me when it's well articulated. Thank you for sharing Paul, greatly appreciated!
@stevennye50754 жыл бұрын
This was one of your best videos so far, for the self-taught it is easy to get a big jumble of code without any structure. This was very good on defining how to set up subs.
@Excelmacromastery4 жыл бұрын
Great to hear Steven!
@trux664 жыл бұрын
Hi Paul - like always great video. I love the "extras" that you keep throwing in along the way. This time it was the simple class module for managing Excel functionality like calculation and events that caught my eye. I plan to use it and give you full credit in all my applications. I am rebuilding an old application that was created before I found your site and picked up the VBA Handbook, this little class will make a solid addition to unwinding that mess of code.
@Excelmacromastery4 жыл бұрын
Thanks Bruce. Glad you found it useful.
@nicor15014 жыл бұрын
That's just (again) an awesome video ! I've been coding for years and still discover new tips and tricks, thanks to you! As for the Enums, the trick is that the incremential is done automatically : Enum ReadColumns rcinvoice = 1 'returns 1 rcCompany 'returns 2 rcAmount 'returns 3 End Enum
@Excelmacromastery4 жыл бұрын
You're welcome. You're right about the enums.
@apbosh12 жыл бұрын
I just use loads of global variables for everything and a few 9 tier if conditionals and loops . Clicking run is equivalent to throwing a tennis ball into a room full of loaded mouse traps, variables flying everywhere! I'm trying to do better though, this video is helping a lot.
@schlaf-michelatwork65322 жыл бұрын
Thank you so much This was so clear and briliant and easy to understand!
@nazaserh4 жыл бұрын
Very good video. Thank you!
@jonnypeace28103 жыл бұрын
Compared to my vba lol. A level above for sure. Always interesting see how others code. There's a lot of useful information, things I've never even touched before.
@tomharrington14534 жыл бұрын
Just a beautiful, elegant clinic in the fundamentals of reading, modifying and outputting data with an excel VBA application.
@tha2irtalib3433 жыл бұрын
Excellent , and thanks for sharing.
@joeburkeson89462 жыл бұрын
Following the advice in this video has forced me to think through what it is I'm actually trying to accomplish without becoming overwhelmed by all of the unanswered technical details. It is a structured approach which keeps you focused on the task at hand while working toward the goal of a finished project. For instance I may not know exactly how I will end up coding a particular data manipulation procedure, but I can outline the structure which continues the flow then get back and code the details stepping through the structure one thing at a time. Needless to say this helped me greatly to get back into programming . Thanks.
@Excelmacromastery2 жыл бұрын
You're welcome Joe. Thanks for the feedback.
@percyveere84004 жыл бұрын
Outstanding video and part of a great series! These videos have re-ignited my enthusiasm for writing VBA code, and now that I have plenty of time (due to self-isolation!), I’m going to scrape the rust off my knowledge and get right back into it again. Cheers - keep up the great works!
@rjaquaponics92663 жыл бұрын
Excellent advice!
@Lykoskia4 жыл бұрын
My god this is amazing... I've started learning programming casually about a year ago and I'm just getting comfortable with some intermediate stuff after laying down a foundation. After trying to wrap my head around everything I've been doing this video blew my mind... I'm actually stuck on making an application that uses your awesome advanced filter concept, trying to adapt it into being able to filter each value inside a column and export all the rows containing it into a new sheet (+ some stuff later that I know how to do already). I used to do that with loops row by row... I went to watch more of your stuff and I think it's drilling a hole into my brain, letting everything I thought I knew leak out and force feed this awesome approach. But I feel so overwhelmed, weak and stupid right now, cause basically everything I know is wrong :). It's also an inspiring feeling... Like the whole world opened up before me and I can start learning about it. I never heard of enums before, and haven't used classes. I feel so confused right now that I think I'll never get that application to work properly. But I can't help feel excited for the future. THANKS FOR EVERYTHING YOU DO!
@Excelmacromastery4 жыл бұрын
Glad you like it.
@Lykoskia4 жыл бұрын
@@Excelmacromastery Not only do I like it good sir BUT I DID IT!! I succeeded yesterday :) ty sooo much
@m-squaredcontractors97204 жыл бұрын
You are the best Paul. I enjoy your videos always. May God bless you for your good work.
@Excelmacromastery4 жыл бұрын
Thanks very much.
@JohnOvens4 жыл бұрын
Paul, that was great. Each time I watch your videos I learn new things, thanks heaps. John
@freeliberalminds2 жыл бұрын
Great video tutorial.
@godisalmighty4449 Жыл бұрын
Wonderful. Thanks a lot.
@wayneedmondson10654 жыл бұрын
Hi Paul.. excellent.. you said it "video is packed with information". Lots to study here. Thanks for sharing your tips and techniques for proper structured code design. Thumbs up!!
@Excelmacromastery4 жыл бұрын
Awesome, thank you!
@petercoombes66024 жыл бұрын
Thank you Paul. I've learned a tremendous amount from you in just 6 months. I enrolled in your ExcelMacroMastery Course and I subscribe to your Vault, which is an ongoing resource everyday I'm programming in Excel. Among the many things I've learned, what impresses me the most is the overview on structuring the code. Today's video was another great learning experience, using Enums instead of constants, love it, and creating the Function Class is another great tool to help organize and hide that bit of data. Thank you! Peter C Vancouver, BC Canada
@Excelmacromastery4 жыл бұрын
Thanks so much Peter. Glad you enjoyed the course and my videos so much.
@tuanphan36444 жыл бұрын
Hey peter i live in vancouver too. Do you have any piece of advice for newbie like me?
@peterwooldridge7285 Жыл бұрын
Smashing.. You are a gun Paul
@Red00022 Жыл бұрын
Clean code makes me smile
@hadibq2 жыл бұрын
Great videos! And great content! Thanks so much.... new sub indeed!
@bharatjain844 жыл бұрын
Thanks for such an easy explanation
@ElectromecanicaIndustrial5 ай бұрын
great tutorial, thanks for sharing this
@kebincui Жыл бұрын
Awesome 👍,Thanks
@davidmonnerat85984 жыл бұрын
*Pressed subscribe* :) Great Video. Been coding VBA for years, but still could add something to my skill set. Especially the debug.assert and the enum columns are potentially very helpful. Never thought about treating col changes with an enum.... My bad Thanks!
@jaysonleuterio6734 жыл бұрын
Hi Paul Very nice video I've watched most of the video that you make. I am from Philippines and looking for a refresher course in VBA and found all of your videos useful and educational. Hoping to see videos making a user template (input name, address, age etc.) with security like the user cannot add sheets and columns... Thanks in advance..
@Excelmacromastery4 жыл бұрын
Thanks Jayson, it's a good idea for a video.
@brucelister55944 жыл бұрын
This video was the the most informative I've seen. I picked up some great tips for efficient program structuring. Thanks Paul.
@Excelmacromastery4 жыл бұрын
Great to hear!
@caraith Жыл бұрын
Paul, always good videos. Can you now show some stuff not related to read/write data from sheet (like comparing files in two folders, backups, some file management, reading data from web page, etc)
@the_feature_selector8594 жыл бұрын
Easily the best teacher of VBA on the internet! Thanks for putting out great content. Do you have plans to do anything on Power BI?
@Excelmacromastery4 жыл бұрын
I don't have plans at the moment but maybe in the future. I have used PowerQuery and would like to look at it some more when time permits.
@Elbranto14 жыл бұрын
Thanks Paul, I am new to your channel, but really appreciate this packed full tutorial.
@Excelmacromastery4 жыл бұрын
Glad it was helpful!
@cypplus28554 жыл бұрын
Valuable contents, thank you very much. Plenty of useful information and easy to follow your master process ... So awesome !!!
@Excelmacromastery4 жыл бұрын
Glad you enjoyed it!
@nadermounir8228 Жыл бұрын
Thank you, Paul, for this great video. Just one quick question: This example has 2 columns so u using key for company and Dic(key) for the amount. What if we have a 3rd column. How could we name then? Since dictionary has only key and value. How can we call the 3rd column ?
@jawalim19964 жыл бұрын
Well explained, excellent tutorial, as usual. Thanks Paul a zillion times
@Excelmacromastery4 жыл бұрын
Very welcome
@DrunkenKnight713 жыл бұрын
Thank you very much for the video (and all of your others)! May I please ask, at the end you wrote 'settings.TurnOff' at the beginning of the sub but 'settings.Restore' at the end, why not settings.TurnOn?
@DrunkenKnight713 жыл бұрын
well I applied it to my code and it seems to work just fine anyway
@jen-lichen81634 жыл бұрын
Really like your content. And you always zoom in to the code to make it easier to follow along. Nice stuff! Thanks! One thing is, not sure if I am the only one get the "type mismatch error" for the last part: change rg to arr.. checked a few times just did not make it work..
@grahamparker77294 жыл бұрын
Great to see you code the application, more please.
@williamspiers46924 жыл бұрын
Very clear and useful. Thank you. Pleased that I use a few of your tips already
@jerryjones88362 жыл бұрын
Wow, I keep picking up more tricks, every video. I was importing the .bas file to turn on/off the functions, now I see the class module as a new enhancement-though I need to review this video again and your Class Module trainings. Your training is just SUPERB!! Thank you. I'm curious why you import these vice using a personal Macro Workbook. Putting the enums at the top of the module, does that make them available to all modules (like public) or just that module?
@Excelmacromastery2 жыл бұрын
Thanks Jerry. You can use public and private with enums to control their scope.
@sasavienne4 жыл бұрын
Thanks Paul. 👏 Your tutorials are stunning. I could learn many useful VBA techniques from you. Go on please. Thanks indeed.
@Excelmacromastery4 жыл бұрын
Thanks, will do!
@MinAwY377Ай бұрын
Liked and subbed !
@rahulkashyap13733 жыл бұрын
Hey bro I have learnt alot from your videos One thing I want to know that why I cant use currentregion in a vba function?
@sic0314 жыл бұрын
This is amazeballs, thank you so much, Paul!
@Excelmacromastery4 жыл бұрын
Glad you like it!
@Omarehbo3 жыл бұрын
Thanks very much
@mike_case4 жыл бұрын
Thank you Paul. Good rules. I like this style of coding.
@Excelmacromastery4 жыл бұрын
Thanks Michal
@faridPQ4 жыл бұрын
Thank you so much for your great service
@Excelmacromastery4 жыл бұрын
You're welcome Farid.
@eduedu7264 жыл бұрын
you are a master ! Thanks for the video
@Excelmacromastery4 жыл бұрын
You're welcome!
@mtotowamungu82594 жыл бұрын
I already feel like a pro.
@RobertWalthery19753 жыл бұрын
Thank you for the video, in fact dictionaries are very useful. I've discovered them when learning python. Now I'm also using them a lot to store data in my custom program. A small question or remark, I'm also splitting my codes into small pieces but in the main program I'm always using an error handling to handle unexpected errors and preventing the program to crash. For instance if we have non numeric value. I guess it make the program more secure. What do you think ? Thank you again for the videos, they are useful Robert
@NanaAtiekuFrans4 жыл бұрын
Thanks. excellent content.
@Excelmacromastery4 жыл бұрын
You're very welcome!
@FulvioGaggioli4 жыл бұрын
Thank you for your teachings: I learnt a lot!
@gpfinance93753 жыл бұрын
Great Video! Is it possible for the filtered results to be copies to the bottom of an existing table in the same worksheet?
@fadetowhite35384 жыл бұрын
very instructive content, thank you
@thearchibaldtuttle4 жыл бұрын
Thank you for this comprehensive video!
@Excelmacromastery4 жыл бұрын
You're welcome Archibald. Thanks for your ongoing support.
@maxspal4 жыл бұрын
Excellent advice and tips. Looks like I’ll be spending the rest of my natural life cleaning up and rewriting my old VBA spaghetti code.
@Excelmacromastery4 жыл бұрын
Glad you like it Terry
@peterbaker46507 ай бұрын
Love the video however i will often need to check value data in more than one column and return it is this possible using a dictionary
@guilherme0311094 жыл бұрын
I Love your job so much. You do this like incredible
@Excelmacromastery4 жыл бұрын
Thanks. Glad you like it.
@alexsandoval76364 жыл бұрын
muy bueno el vídeo, espero más vídeos tuyos, son muy educativos
@Excelmacromastery4 жыл бұрын
Thanks Alex.
@estebanisswimming4 жыл бұрын
Thanks ! Absolutely amazing
@sdawilson4 жыл бұрын
Excellent... Again.
@Excelmacromastery4 жыл бұрын
Thanks Simon
@benjamingmsousa4 жыл бұрын
Hi, thanks for the video. Is it faster to read from text file using arrays? Do you have a video about it?
@rickkeev49194 жыл бұрын
Great video!! Is enum a procedure or a declaration? I ask because Could you use a match function to actually find the column names or must it be a sub procedure to run?
@philipmcdonnell71684 жыл бұрын
I sort of get the Dictionary thing but not really. I finally get the Enum thing, though! And I may even get the Class module you showed for events-handling. I just do it in an ordinary module but yours looks much more comprehensive. :)
@R72Investments4 жыл бұрын
Hi Paul, as always: simply great! You once mentioned in a video that your PC is very fast. Can you do a video about the configuration/customization of a PC? In addition to that, I would like to learn what app do you use for the mouse effects in your videos. Would be most appreciated. Thank you!
@Excelmacromastery4 жыл бұрын
Hi Marcel, It has was a faster pc because it had a very high spec when I bought it. I used camtasia to record and edit the videos. Any screen editing software should have the ability to easily add the mouse effects.
@victor_wang_13 жыл бұрын
Awesome lesson and I'm sure even experienced developers saw something here which can improve their macros. I'm interested in knowing why you use a Class for macro performance settings. I've always just called a sub like this: Public Sub MacroMode(ByVal Toggle As Boolean) With Application .ScreenUpdating = Not Toggle .EnableEvents = Not Toggle .DisplayAlerts = Not Toggle .EnableAnimations = Not Toggle .DisplayStatusBar = Not Toggle .PrintCommunication = Not Toggle .Calculation = IIf(Toggle, xlCalculationManual, xlCalculationAutomatic) .Cursor = IIf(Toggle, xlWait, xlDefault) End With End Sub
@peterbaker46507 ай бұрын
You refer to a class module for the dictionary for macbooks can you please advise where I can get a copy
@rohithnlp4854 жыл бұрын
Hi Sir, am Rohith from India please teach Us complete array concepts in VBA and how to implement in reports to create dynamically.