Тёмный

Master VBA Debugging in 20 Minutes 

Excel Macro Mastery
Подписаться 86 тыс.
Просмотров 37 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@Excelmacromastery
@Excelmacromastery 2 года назад
Enjoy the video. You can download the workbook I used in the description below. Let me know the most useful thing you learned from this video.
@ChristinaFranziska
@ChristinaFranziska 2 года назад
Thanks for the great input! very valuable. Just, I can't download the file through the link given in the description. Can anyone assist? Thanks :-)
@jimfitch
@jimfitch 2 года назад
Wow, Paul! I’ve been debugging the hard way for so long … like using a hand shovel when a bulldozer is right there. Thank you!
@Excelmacromastery
@Excelmacromastery 2 года назад
You're welcome Jim
@KM-co5mx
@KM-co5mx 2 года назад
Thank You! Knowing how to debug is just as important as knowing how to code.
@Excelmacromastery
@Excelmacromastery 2 года назад
Very true!
@mrCetus
@mrCetus 2 года назад
Yet another helpful masterpiece. Sir, Thank you for this wonderful explanation. I am still learning excellent VBA tricks from you. It's Awesome.
@Excelmacromastery
@Excelmacromastery 2 года назад
You are most welcome
@tristanc6967
@tristanc6967 2 года назад
So much great information in just 20 minutes. I'll definitely rewatch this a few times, but this will help me save so much time debugging. Thanks Paul!
@ricardoantunes9134
@ricardoantunes9134 2 года назад
Thanks for sharing these very useful tips!! It will help me a lot
@Excelmacromastery
@Excelmacromastery 2 года назад
You're welcome
@freeliberalminds
@freeliberalminds 2 года назад
Great VBA knowledge sharing sir Paul. So much thankful. God bless you.
@junkertom7766
@junkertom7766 2 месяца назад
Thanks for this video. For me it didn't contain much new stuff, but I recommend this video all the time to VBA beginners: friends, colleagues and on Stack Overflow.
@Excelmacromastery
@Excelmacromastery 2 месяца назад
Thanks for sharing!
@bydlosith
@bydlosith Год назад
I wish I watched this video couple months ago, but only hours of painful debugging made me look for it :) thanks!
@munshirasimraja5713
@munshirasimraja5713 Год назад
Wonderful lesson of debugging code. I am very grateful for the video. Thanks u
@rafaelsilvareghin2017
@rafaelsilvareghin2017 2 года назад
wow, I've been debugging for years and still learned a lot from your video, ty
@Excelmacromastery
@Excelmacromastery 2 года назад
You're very welcome Rafael!
@Pedritox0953
@Pedritox0953 2 года назад
Awesome video!
@Excelmacromastery
@Excelmacromastery 2 года назад
Glad you enjoyed it
@pegwinn
@pegwinn Год назад
Thank you. I am not an excel pro. So when my simple macros break it is traumatic to say the least. I appreciate your tutorial videos.
@Excelmacromastery
@Excelmacromastery Год назад
Glad you like it.
@donuteater
@donuteater 2 года назад
Gracias, aprendi cosas nuevas
@jerzykepinski
@jerzykepinski 2 года назад
Thanks man!
@buzan.untung
@buzan.untung 2 года назад
Thank you
@renyongsun9102
@renyongsun9102 Год назад
Unbelievably informative video! Thank you for making it!
@Excelmacromastery
@Excelmacromastery Год назад
You're welcome
@stevegarwood3840
@stevegarwood3840 2 года назад
This is great. I've also been exploring the usefulness of debug.assert to stop when a value doesn't match what's expected. Not sure if there's any advantage over a watch.
@kentokawaguchi8210
@kentokawaguchi8210 Год назад
Great and knowledgeable video. Thanks for making it and sharing it with us.
@SimpleExcelVBA
@SimpleExcelVBA 2 года назад
I didn't think I could get anything new from the video, but... this 'Add Watches & Break if True' is really cool tip. Thank You for that :) Maybe I have something for You - do You know that You can manually move the yellow line (break mode) some lines further or before? It helps me a lot in debugging.
@Excelmacromastery
@Excelmacromastery 2 года назад
Glad it was helpful!
@ryanmattson1546
@ryanmattson1546 2 года назад
Thanks for the video. Very helpful!
@johnwayne8059
@johnwayne8059 2 года назад
Nice Video Mr. VBA!👍👍👍🤟😎
@Excelmacromastery
@Excelmacromastery 2 года назад
Thanks John.
@alializadeh8195
@alializadeh8195 Год назад
Thanks
@KaiWeissmann
@KaiWeissmann 2 года назад
Thanks a lot for the great content!
@Excelmacromastery
@Excelmacromastery 2 года назад
You're welcome.
@m_marcamo
@m_marcamo 2 года назад
Really usefull, thanks Paul
@Excelmacromastery
@Excelmacromastery 2 года назад
You're welcome
@xs6819
@xs6819 Год назад
Well how do you step on I cant even get the yellow arrow to highlight the next line?
@artistryartistry7239
@artistryartistry7239 2 года назад
1:27 I wrote the code exactly as you did. Whenever I try to step through windows just gives me an error chime. Any ideas please?
@peajayjay3622
@peajayjay3622 2 года назад
Excel Macro Mastery...I need help! I have been running into a brick wall concerning PasteSpecial x1PasteValues error. How do I correct this error? If you've explained this specific example, please please point me to your video. Thanks!!
@gopikasnair2813
@gopikasnair2813 Год назад
Useful❤😂
@WordBaron
@WordBaron 2 года назад
Do you have any examples where a function can be used in the "Break When Value Is True" Watch option is used? I'm trying to figure out where in my code a particular data connection is getting inadvertently moved/renamed which causes subsequent data refresh steps to fail. I created a function that should tell me if the Connection exists but adding it to the watch window [via something like ConnExists("Connection Name")] always shows "" and I wasn't sure if something like a function that returns a Boolean could be used in a "Break When Value Is True" watch option. 🤔
@Excelmacromastery
@Excelmacromastery 2 года назад
I don't think you can do that with a function. If possible you could return the function to a variable and put the watch on that. Another idea is to use the Debug.Assert line which will pause if the condition is false. See this video for more about Debug.Assert(ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CT7XkPXKVFw.html)
@kimfucku8074
@kimfucku8074 2 года назад
Another master class!
@Excelmacromastery
@Excelmacromastery 2 года назад
Thanks.
@rahul7rock
@rahul7rock 2 года назад
Yet another helpful masterpiece. Sir, Thank you for this wonderful explanation. I am still learning excellent VBA tricks from you. It's Awesome.
@Excelmacromastery
@Excelmacromastery 2 года назад
Thanks Rahul
@outby50
@outby50 2 года назад
Great intro. (In decades of using VBA, I'd never pondered what Set next statement even meant. Too soon old, too late smart.) Two comments: 1) the advantage of Run to cursor vs setting a breakpoint is you don't have to clear the breakpoint afterwards if you don't want to keep stopping there during this session. 2) I'm somewhat surprised you never mentioned the Immediate window. Some of the things you showed for watch are occasionally better suited to Immediate (i.e., ? x+7700). Also, Immediate allows you to modify variable values on-the-fly (i.e., loopcount=maxloopcount-1). Not to mention Debug.Print...
@simplejuan
@simplejuan 2 года назад
Thank you for this video. I've been missing a lot of things in debugging my vba. This is very helpful. Breaking in a loop is awesome. I have been struggling with that. Now I know how. Thanks again
@Excelmacromastery
@Excelmacromastery 2 года назад
You're welcome
@wayneedmondson1065
@wayneedmondson1065 2 года назад
Thanks Paul. Great, as always! Thumbs up!!
@laurie93001
@laurie93001 2 года назад
I'm relatively new to vba and self taught, I often read that "call" is depreciated and "application.run" should be used instead? What are the advantages and disadvantages of each?
@Excelmacromastery
@Excelmacromastery 2 года назад
Call is not required but I like using it as it makes the code a little bit more readable.
@olivermason8037
@olivermason8037 Год назад
Concise and super informative, thank you!
@joaocustodio2094
@joaocustodio2094 2 года назад
And once again I left with more knowledge of vba. Thanks Paul.
@Excelmacromastery
@Excelmacromastery 2 года назад
My pleasure!
@WordBaron
@WordBaron 2 года назад
The "Break When Value Is True" Watch option is especially valuable. Thank you!
@Excelmacromastery
@Excelmacromastery 2 года назад
Thanks Walter
Далее
Use Excel VBA to Read API Data
20:48
Просмотров 138 тыс.
С какого года вы со мной?
00:13
Просмотров 100 тыс.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Просмотров 3,7 млн
10 Years of VBA Array Knowledge in 40 Mins
41:57
Просмотров 19 тыс.
The Ultimate Guide to Copying Data using Excel VBA
31:05
5 VBA Hacks Everyone Should Know in 2021
11:20
Просмотров 91 тыс.
Power Automate Beginner to Pro Tutorial [Full Course]
2:51:54
A Guide to VBA Debugging Techniques
14:08
Просмотров 14 тыс.
С какого года вы со мной?
00:13
Просмотров 100 тыс.