How to Solve a VBA Error in Less Than a Minute

  Рет қаралды 76,529

Excel Macro Mastery

Excel Macro Mastery

Күн бұрын

Пікірлер: 98
@querrythis
@querrythis 10 ай бұрын
Debugging has given me some serious headaches. I cannot thank you enough for your explicit breakdown. Your tutorials have been an education for me.
@mcallister7593
@mcallister7593 3 жыл бұрын
I've been working with VBA for over a year, and every time I watch one of your videos I learn something new and invaluable that I wished I had learned long ago. They're all so clear and concise, and aimed at real every-day problems.
@Excelmacromastery
@Excelmacromastery 3 жыл бұрын
Thanks. That's great to hear.
@JohnOvens
@JohnOvens 4 жыл бұрын
Paul, I have not used the watches window much at all, but after viewing this online seminar I am a converted fan and now will be using it a lot more. I cannot thank you enough for the excellent training I have received from you over the years and in particular your VBA course, which is awesome.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks a lot John, Glad you like it.
@MagicOfMushrooms
@MagicOfMushrooms 2 ай бұрын
I had never seen the 'Break on all errors' That is extremely helpful! I've literally been commenting out my "on error goto ..." putting in "on error goto 0" temporarily and then having to change back later; and of course that applies to anywhere where I have error handling, so there could be multiple error handling sections... Checking a box is so much simpler 😄
@donstruble7489
@donstruble7489 4 жыл бұрын
Great job as always. Rather than bringing up the Watch window, you can get the value of any single variable by simply holding the cursor over the variable in the debug window. The watch window is then helpful if you need assistance finding or confirming the source of the data in that variable. I find if I am dealing with my own code the source is usually readily apparent and the watch window is not needed. When debugging someone else's code or my own code that I have not seen in awhile the watch window is used more often.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks for the feedback Don.
@PROBeirne
@PROBeirne 4 жыл бұрын
Well structured walkthrough, especially of Break on All Errors and editing the Watch Window.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks Patrick
@tophercahill8111
@tophercahill8111 4 жыл бұрын
Outstanding! This video is one of your very best Paul. I have struggled to use the Watch window effectively until now. Thank you & Well done!
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks Topher, Glad you found it helpful.
@mateuszbajko4342
@mateuszbajko4342 4 жыл бұрын
I really appreciate you explain everything in the simpliest way there is. There are lots of VBA tips on the internet, but only a little of it is understable. Please do more of your best - as always :)
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Glad to help!
@gregnorthover5400
@gregnorthover5400 4 жыл бұрын
every now and then if you are lucky you come across a gold nugget. This is one of those, I have used the watch window but can now see how much more useful it can be used...awesome tutorial.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Glad you like it Greg
@scottgaines2677
@scottgaines2677 2 жыл бұрын
Another great job Paul! It didn't solve my problem, but I learned a ton and am on my way! Thanks so much!
@srider33
@srider33 4 жыл бұрын
King of error trapping!! Another good video.
@kishorekizz8446
@kishorekizz8446 4 жыл бұрын
Excellent, perfect way to debug. I sometimes use immediate window, if it is complex, watch window is ideal choice. Thanks for your efforts on making this content.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
You're welcome!
@johnwayne8059
@johnwayne8059 4 жыл бұрын
As watching every of your videos, I could enjoy it truly much! Thanks for your informative and easy tricks about error handling and reverse engineering light! Hope publishing your next video won't need so much times! I hope your fine and thank you!
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
You're very welcome!
@grzegorz2852
@grzegorz2852 3 жыл бұрын
man, you're just incredible. i have learned a lot from you. great content, simply to figure it out. great examples, etc. i have done a lot of different tutorials but your is the best. your blog is super helpful. owing to you, I have understood: arrays, collections. big thanks from Poland
@Excelmacromastery
@Excelmacromastery 3 жыл бұрын
You're welcome😀
@TPPembabulous
@TPPembabulous 2 жыл бұрын
Nicely described!
@gabrielvalmo5227
@gabrielvalmo5227 4 жыл бұрын
Estoy aprendiendo bastante con tus videos gracias por compartir tus conocimientos.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
You're welcome.
@thesiantjabb
@thesiantjabb 3 жыл бұрын
You saved my life. Thank!
@abdulhaseeb8027
@abdulhaseeb8027 4 жыл бұрын
Great video and amazing way of explanation. It can come very handy
@tuworlds
@tuworlds 10 ай бұрын
thank you for this.... i know it will save me a lot of time
@AnilKumar-vi8oe
@AnilKumar-vi8oe 4 жыл бұрын
Fantastic as always, you are doing a great job
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thank you very much!
@renaldomoon3097
@renaldomoon3097 3 жыл бұрын
ty, i actually solved my problem in under one min. gj brother
@TheUnicleo
@TheUnicleo 4 жыл бұрын
now I know how to use Watches window better. 🙏Can you please put some of your fantastic complete guide on text file handling in VBA?! I appreciate that.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
I cover Text File Handing in my Excel VBA Handbook Course.
@umeshlangade9231
@umeshlangade9231 4 жыл бұрын
Thanks for quick tips
@aeduardorp
@aeduardorp 4 жыл бұрын
Very clear explanation, thanks
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Glad you liked it
@AaronBStephens
@AaronBStephens 4 жыл бұрын
Great tips, and great presentation.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks Aaron.
@hkoranteng1
@hkoranteng1 4 жыл бұрын
Great explanation!
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks!
@hkoranteng1
@hkoranteng1 4 жыл бұрын
@@Excelmacromastery Had i have known you'd reply I would have elaborated a bit more lol! To put my comment into context, for me error handling is the most intimidating part of learning to code in VBA (or in any language for that matter). Your video broke it down so well that I literally have no idea what I was scared of in the first place. I can't recommend your videos enough. Keep up the good work.
@warrenhall1750
@warrenhall1750 3 жыл бұрын
Another wonderfully presented Excel VBA explanation... as we have come to expect. Many thanks.
@vbaclasses3553
@vbaclasses3553 4 жыл бұрын
Excellent, as always. Thanks for sharing.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks again!
@chandrasekharswamypydikond5364
@chandrasekharswamypydikond5364 2 жыл бұрын
Thank you. Helped alot❤
@selenagomiz4086
@selenagomiz4086 2 жыл бұрын
Hi do you know what causes "unexpected error (35005)" excel? thanks so much
@GopiNath-fp5ly
@GopiNath-fp5ly 4 жыл бұрын
Excellent and very useful, thank you.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Glad it was helpful!
@muhannad_youssef
@muhannad_youssef 4 жыл бұрын
Please can we make record for errors by name of the macro and line number ( sometimes the employed don't have Permission to access VBA )
@grahamparker7729
@grahamparker7729 4 жыл бұрын
Great tip 👍🏻
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Glad it was helpful!
@mikefinn7263
@mikefinn7263 2 жыл бұрын
I Need some help, I built a trim sheet that has around 25 Worksheets in the workbook. I built in a auto reset clear page button for each page about the pages work just fine with the pages protected or unprotected. The other half for some reason will rest just fine unprotected, but when I protect the sheet and hit reset I get and error code 400, How can I fix this?
@SoulMateKsa
@SoulMateKsa 4 жыл бұрын
Great job
@karnabudhathoki5311
@karnabudhathoki5311 4 жыл бұрын
Thanks very much for the information.....
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
My pleasure
@wulp1191
@wulp1191 4 жыл бұрын
Nice one
@muhammadsuleman6179
@muhammadsuleman6179 3 жыл бұрын
Hi i hope you are fine and good. i have question? kindly reply I have VBA Macro excel file. it have a button in it. when i press the button it automatically get data from website and put it excel sheet with date. but unfortunately the file is not working now. when i run the file in other laptop it works fine. can you solve the problem to run the file in first computer?
@nimrodzik1
@nimrodzik1 4 жыл бұрын
Thak You very much. Great as usual
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks again!
@kishi3987
@kishi3987 Жыл бұрын
Great content! Thank you for sharing your knowledge! My team has quite a few macros. Most of them open log files, read data, validates and extracts data on log files based on the position in the row. Then finally generats ouput files (log file) with the information based on the matched criteria. Most of the times because of extra spaces or characters macro not able to read data on source files (log files) and providing error messages. Could you please upload a video with log files and how to identify source file and the line of souce file where the error coming from? Thank you in advance!
@kartickchakraborty9135
@kartickchakraborty9135 4 жыл бұрын
Merry Christmas to you and your family...
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks Kartick. Best wishes to you and yours.
@hericklenin
@hericklenin 4 жыл бұрын
Fantastic, thanks Sir.
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Most welcome!
@Chat2Conaz
@Chat2Conaz 4 жыл бұрын
Just curious why you didn't mention the locals window?
@rahulshewale9206
@rahulshewale9206 4 жыл бұрын
Thank you sir
@Temniknn
@Temniknn 3 жыл бұрын
Very usrfull
@xenzomi1321
@xenzomi1321 4 жыл бұрын
Thank you so much!
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
You're welcome!
@AI-ec2qb
@AI-ec2qb 4 жыл бұрын
I bought your book 41 habits
@bryanogden1419
@bryanogden1419 4 жыл бұрын
Thank You
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
You're welcome
@wilholland100
@wilholland100 2 жыл бұрын
Thanks for info, however, my excel vba says out of memory and this is the code, literally, " Sheets("Customer").Select Exit Sub . . . ? This is an excel that was downloaded onto a brand new pc, and my old pc is where this file came from (works fine there, and that pc is pretty much out of memory). I'm hoping that there is a way way way easier answer- like a button that I just have to click. . . .This is almost no code. . . it is only "selecting a sheet"
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Sounds like your code is in an event. When you select the sheet it triggers the event again and again until you have run out of memory. Turn off events at the start of the sub: Application.EnableEvents = False. Turn back on at the end: Application.EnableEvents = True
@kartickchakraborty9135
@kartickchakraborty9135 4 жыл бұрын
Happy New Year in advance to you Sir and your Family. May this new year bring all the happiness in your life. Sir I'm requesting you to please make videos on these topics given below. No one has ever discussed on these topics on internet in great details so that we can understand them properly. Please make videos on these 3 topics. By the way, I'm very much impressed with your teaching style. Your way of teaching is unbelievable. Please keep my request. 001) Split Function in VBA with Multiple Delimiters like ";:*_, ./#@". I mean to say, how to split alphanumeric contents in Excel with split function in VBA those have multiple Delimiters. 002) How to convert Currency to Word through VBA? (Like 1,000,000 = One Million Dollar and Zero Cent Only) 003) How to find out Prime Numbers through VBA? (Like 3, 7, 11, 13, 17, 19, 23, 29 and so on).
@kartickchakraborty9135
@kartickchakraborty9135 4 жыл бұрын
Hello Sir, Recently, I've faced some problems in my office work. In order to solve those problems, I came up with 3 ideas. But due to shallow knowledge in VBA, I couldn't implement those ideas in reality to sort out those issues. I've given my 3 questions below one by one. I believe, you'll definitely help me. 001) Is it possible to create Spilled Array (Dynamic Array) like function in VBA. I mean to say creating User Defined Function like Spilled / Dynamic Array Functions (Filter, RandArray, Sequence, Sort, SortBy and Unique Functions) in Excel (Office 365 Version). 002) How do I split First Names, Middle Names (If Available) and Last Names with one single User Defined Function in VBA? Is it also possible in VBA? 003) How to use VBA Split Function with Multiple Delimiters?
@seleman-MW
@seleman-MW 3 жыл бұрын
my problem "is Out of memory" whenever i try to open vba on excell
@deprive-999x
@deprive-999x 2 жыл бұрын
I'm getting runtime error 91 excel on mac not on windows
@sarahmustafa959
@sarahmustafa959 3 жыл бұрын
I need help. Can you please help
@gokuls9557
@gokuls9557 11 ай бұрын
How to solve catastrophic failure error in vba
@philipmcdonnell7168
@philipmcdonnell7168 4 жыл бұрын
I don't use the watch window or Parent anything like often enough.
@noneyabeezwax8865
@noneyabeezwax8865 4 жыл бұрын
Wow!
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Glad you liked it.
@karmusinghsiddhu190
@karmusinghsiddhu190 4 жыл бұрын
sir can pls correct for me Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim Rg As Range Dim G As Integer Dim varno As Long 'With Sheet1 'Range("J5:J5").AutoFill Destination:=Range("j5:j213") 'Range("L8").Formula = "=IF(AND(F5="",G5="",H5=""),"",I4+F5-G5-H5)" 'Range("l5").Value = "=(IF(AND(F5="",G5="",H5=""),"",I4+F5-G5-H5)" Range("A2").Formula = "=TRANSPOSE(P2)" Range("J4").Formula = "=SUM(G4-H4-I4)" Range("L3").Formula = "=SpellNumber(L2)" Range("M2").Formula = "=NOW()" ' Range("A1").Formula = "=TRANSPOSE(FO1)" Range("D2").Formula = "=COUNTA(D5:D217)" Last Row (Total =I4+F5-G5-H5)" End Sub
@BertandRussell
@BertandRussell 4 жыл бұрын
💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖💖
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Thanks
@rahman_darb
@rahman_darb 4 жыл бұрын
Thank you sir
@Excelmacromastery
@Excelmacromastery 4 жыл бұрын
Welcome
VBA Error Handling Explained in Plain English (with examples)
23:13
Excel Macro Mastery
Рет қаралды 48 М.
Reduce VBA Errors by 90% (with this little-known Method)
16:59
Excel Macro Mastery
Рет қаралды 59 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
A Level Accounting October November 2024 Paper 32 9706/32 Question 3
20:47
Python in Excel vs. VBA - What You Should Learn in 2024!
10:05
David Langer
Рет қаралды 77 М.
My FAVORITE Error Handling Technique
16:01
ArjanCodes
Рет қаралды 46 М.
Master VBA Debugging in 20 Minutes
22:08
Excel Macro Mastery
Рет қаралды 40 М.
Excel VBA - Error Handling
4:58
TutorialsPoint
Рет қаралды 135 М.
5 VBA Hacks Everyone Should Know in 2021
11:20
Excel Macro Mastery
Рет қаралды 92 М.
Hide Worksheets with Passwords in Excel (No Code Required)
4:36
I Made this VBA Code 2,880,952% faster
12:21
Excel Macro Mastery
Рет қаралды 28 М.
Enums(Enumeration): The Key to Cleaner, More Efficient VBA Code
9:58
Excel Macro Mastery
Рет қаралды 33 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.