10 Years of VBA Array Knowledge in 40 Mins

  Рет қаралды 24,264

Excel Macro Mastery

Excel Macro Mastery

Күн бұрын

Пікірлер: 102
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Learn how to write real-world Excel VBA code: 👉courses.excelmacromastery.com/ Let me know in the comments if you like this longer video format😀
@mariustapculescu1061
@mariustapculescu1061 5 ай бұрын
Yes is beautifull ,easy to follow you and learn a lot!
@sevencrickets9258
@sevencrickets9258 5 ай бұрын
I have been utilizing your resources for 5+ years. I'm a stress engineer, so sifting through tons of raw data and outputting something useful with little individual input is the name of the game. Your stuff has been without question my favorite resource. Clear. Concise. Exactly what is needed.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Glad you like it so much😀
@karimkarimli6803
@karimkarimli6803 2 ай бұрын
@@Excelmacromastery Paul, you are my hero. Learned so much stuff alone from your articles. Thank you very much!!
@SolutionsByPVV
@SolutionsByPVV 5 ай бұрын
Paul, your tutorials are fundamental. Yes, I like them.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks
@TheSupercanard1976
@TheSupercanard1976 5 ай бұрын
Really Good. Starting from what an average skilled VBA user would try, highlight the pitfalls and errors, then going to the right solution and finishing with the neat ultimate optimized professional way to do it. Great. Thank you Paul.
@carlos6640
@carlos6640 2 ай бұрын
really good to separate each procees in read, process and write the data
@MinAwY377
@MinAwY377 6 күн бұрын
The code at 26:00 cuts off before the final line, the complete version is : Public Sub arrayToRange(ByRef data As Variant _ , ByVal firstCellRange As Range _ , Optional ByVal numberOfRows As Long = -1 _ , Optional ByVal numberOfColumns As Long = -1 _ , Optional ByVal clearExistingData As Boolean = True _ , Optional ByVal clearExistingHeaderSize As Long = 1) If clearExistingData = True Then firstCellRange.CurrentRegion.Offset(clearExistingHeaderSize).ClearContents End If Dim rows As Long, columns As Long If numberOfRows = -1 Then rows = UBound(data, 1) - LBound(data, 1) + 1 Else rows = numberOfRows End If If numberOfColumns = -1 Then columns = UBound(data, 2) - LBound(data, 2) + 1 Else columns = numberOfColumns End If 'this part firstCellRange.Resize(rows, columns).Value = data End Sub
@kcerny43
@kcerny43 5 ай бұрын
It's a pure pleasure to work with your tutorials.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks
@nathanbowers1761
@nathanbowers1761 5 ай бұрын
Hi Paul, I appreciated that longer video format. It helped me locate where I'm at in my Excel VBA Array journey, and the clear explanations helped me to move to the next level. Nice tutorial; I'm a fan of your work!
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Great to hear Nathan!
@vbaclasses3553
@vbaclasses3553 5 ай бұрын
Amazing video as always Paul. The longer format is quite good as well. Thanks.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks
@VBA-w7q
@VBA-w7q 5 ай бұрын
Excellent, as always! Best cristal clear VBA tutorials ever! I've learned a lot form you! Thank you for that! Please, share us more of your knowledge! AI can automate tasks, but human makes them personalized. So, for Excel dependent jobs, VBA can help a lot if deeply understood and learned.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thank you
@MiguelSeijas-f6z
@MiguelSeijas-f6z 4 ай бұрын
This is, without a doubt, awesome!
@billroberts2808
@billroberts2808 5 ай бұрын
Thanks Paul - as always your videos contain very useful information. I like the longer content video above. It provides a more 'start to finish' approach to code logic. Best regards, Bill
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks Bill
@VIPULDJHAVERI
@VIPULDJHAVERI 5 ай бұрын
Thanks Mr. Paul Great way to master , step by step - so basic fundamentals are very clear as we move forward with clutter free powerful codes - Your Mastery, always shared brilliantly to make us Masters as well ! Thanks a Lot for sharing your treasure 🙏
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Glad it was helpful!
@dangreen2501
@dangreen2501 5 ай бұрын
I like anything you do!
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks 😊
@sedataksakal414
@sedataksakal414 5 ай бұрын
You are amazing. Thank you. Greetings from Turkey.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks
@danielmelo389
@danielmelo389 5 ай бұрын
Nice video, I'm working more with VBA nowadays and the knowledge I got from you helped me a lot, though I haven't adapted to not bubble up my variable declarations yet 😅
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks Daniel
@nadermounir8228
@nadermounir8228 5 ай бұрын
Thank you paul for this nice video. I am already taken your VBA effective course
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
You're welcome
@hammeedabdo.82
@hammeedabdo.82 5 ай бұрын
thanks Mr. Pau. Please, we need more videos with projects about real-time application in excel through websockt.
@JOSELUISTORREZRIOS
@JOSELUISTORREZRIOS 5 ай бұрын
Excelente tutorial paso a paso y muy útil, muchas gracias
@FabrizioBaranello
@FabrizioBaranello Ай бұрын
A M A Z I N G work!!
@urielramirez27
@urielramirez27 5 ай бұрын
Simply masterful! Do you have any courses or classes in recursive functions?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks. I haven't covered recursion.
@urielramirez27
@urielramirez27 5 ай бұрын
@@Excelmacromastery if you need an example idea for the course I have 2: getting the names of files in folders that have subfolders and getting the charges on a credit card charges history that sum up to the credit card current balance
@alterchannel2501
@alterchannel2501 5 ай бұрын
i adore these types of videos
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Glad you like them
@121960864
@121960864 5 ай бұрын
Thank you very much! It helps me so much!😀
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
You're welcome
@iincitr
@iincitr 5 ай бұрын
Thank you again clean and valuable info. Any plan to video about Excel with Typescript or any other modern code?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
I have videos on office scripts and Python on this channel.
@simioneitor1975
@simioneitor1975 5 ай бұрын
Amazing! Thank you!
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
You're welcome.
@emililie2244
@emililie2244 5 ай бұрын
Thank you. I learned a lot.
@querrythis
@querrythis 29 күн бұрын
I used VBA as an enhancement tool, but not frequently. I couldn't ask for a better reference resource.
@alexandrumarcel3696
@alexandrumarcel3696 5 ай бұрын
one issue I was facing when working with copying arrays is that if you have a column (or more) that is containing string values that starts with "0", the destination range needs to be formatted as text (.numberformat = "@"), otherwise the leading 0s will be truncated.
@johnbutler2750
@johnbutler2750 5 ай бұрын
If your numbers are of fixed length you can always just add zeros to the front and take the right of the required length, then number value of that Always a pain on bank details and phone numbers Tho it’s more annoying working with sort codes as some of the time it converts 6 digits separated by hyphens to dates
@alexandrumarcel3696
@alexandrumarcel3696 5 ай бұрын
@@johnbutler2750 your solution for a simple copy paste will add a lot of extra effort to implement, especially if you have more columns that are not always being pasted into the same cells
@johnbutler2750
@johnbutler2750 5 ай бұрын
@@alexandrumarcel3696 meant it as a more general solution, either use a custom function to apply it when called in a larger macro, or as a nested formula to apply to an entire column then copy-paste as values (depending on how often it’s used)
@muhammadkausar2842
@muhammadkausar2842 5 ай бұрын
Hi Paul, you are amazing, i also download your ClsArray2D class module, and take so much benefits, thank you, now am also able to make my own function for arrays current region, or clear existing data,,. I also download this one , thank you so much for your free help😊
@rnunez047
@rnunez047 3 ай бұрын
I'll be wanting for the tutorial. Even I don't speak English 🫣. But I speak Vba. Tks so much. It looks great
@СергейШлизенбарт
@СергейШлизенбарт 4 ай бұрын
Hi, Paul. Great tutorial as always. However i ve encountered with difficulties when sorting an array at the very last step. I fail to sort it with one line worksheetfunction approach (No method is found).Other youtube tutorials also provide some longer solution on array sorting. Is there any trick that i ve missed?
@daveyks1
@daveyks1 5 ай бұрын
Love this video! Do you program in Access VBA? Please would you do one for Access if you do? Thanks!
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Glad you like it. I haven't used Access in a long time .
@Art8157
@Art8157 5 ай бұрын
Paul, thanks for nice and detail comments. I have one question, why when I use "marks = shMarks.range("A1").Value" I receive error 424 (Object required). And it works when I write "marks = Sheets("shMarks").range("A1").Value".
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
shMarks should be the code name of the worksheet
@home8771
@home8771 5 ай бұрын
does anyone know how to do "make a multiple line as comment" shortcut like the one in 14:35?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
See the second answer here: shorturl.at/HaQN1
@daneasch9703
@daneasch9703 5 ай бұрын
Hi Paul, Realy enjoyed the webinar, Thanks. I did run in a problem with the code, trying to filter I get the eror " unable to get the sort property of the worksheetfunction class" on line "outputArray = WorksheetFunction.Sort(outputArray, 4, -1)" . any ideas?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
You need Excel 2019 or later to use the sort function.
@daneasch9703
@daneasch9703 5 ай бұрын
@@Excelmacromastery Thanks Paul, that explains it. Nice webinar, again. Like the lenght.
@Dexter101x
@Dexter101x 5 ай бұрын
I don't mind the longer format, but would like shorter ones as well Is there something wrong with using xlDown as oppose to xlUp?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
It will stop at a blank row if searching from the top.
@stevetatterton
@stevetatterton 5 ай бұрын
I would suggest the GetCurrentRegion function should call another function to remove heading lines but setting the current region property outside of calling that function. Then the inner function can be used to remove headings from any region even if current region isn't to be applied.
@kofigyebiadusei2205
@kofigyebiadusei2205 5 ай бұрын
Hello Paul. I'm Kofi from Ghana. Please when will you make a VBA introductory video. It will be very much appreciated. Thank you
@dheerajjain5754
@dheerajjain5754 5 ай бұрын
Can we use arrays to copy all file names from a folder and paste it in an excel range? I am currently using "Copy Path" menu item to copy all file names which are there in a folder and pasting them in excel because it is simpler and time saving than running a macro which reads each file one by one and copies its name.
@Zboob999
@Zboob999 5 ай бұрын
Nice. What about Typescript for Excel ?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
I have some videos on Office Scripts which using the TypeScript language for Excel.
@trevormckerrow1460
@trevormckerrow1460 5 ай бұрын
As always your tutorial was very informative. One issue; I get a runtime error when calling the worksheet sort function. This function seems to be unavailable in my workbook. Do you know why?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
It's only available for Excel 2021 and 365
@patrickpointer8380
@patrickpointer8380 3 ай бұрын
Hi Paul, Excellent video! I cant seem to get LastRow to work. I get an error Run time error1004. all the sheet names are correct Any ideas?
@m_marcamo
@m_marcamo 5 ай бұрын
Thanks for your knowling
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
You're welcome
@ManojYadav-nt2rm
@ManojYadav-nt2rm 5 ай бұрын
how much time it will take if the data is 10k plus?
@muhammadkausar2842
@muhammadkausar2842 5 ай бұрын
Really amazing work, yes we like it. I watched it 2 times 😂
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
You're very welcome
@_-wv4ez
@_-wv4ez 3 ай бұрын
Дякую за урок.
@YvesMédardNGWAT
@YvesMédardNGWAT 5 ай бұрын
Hi Mr KELLY. Hope you're fine. I guess you've heard about Office script. My concern is to know if VBA is will still be used in the 5 or 10 next years?!!! Is Office Script is replacement!! I've got those worries since I read somewhere that Microsoft will definetively discard VBScript from Windows 11. Do you have clear and trustfull informations about that topic?
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Office scripts is not a replacement for VBA. The VBScript update, as it stands now, will only affect regular expressions in VBA.
@JAY_DJ
@JAY_DJ 5 ай бұрын
Thanks for sharing valuable information. I am already using array but it is still taking time to process big datasets. I have checked the number of iterations is more than 30+ million. Please can you tell me is there any way through which I can use GPU or multi-thread? I have done a lot of research regarding this and someone told me to use opencl but unable to find the library. I have tried to find some third-party tools also for parallel processing but I haven't found any tool yet. Please can you help me that would be great.
@suvadipkundu152
@suvadipkundu152 5 ай бұрын
Hi, would you like to elaborate on the problem statement a bit.. for example, would 30 million iterations mean that you are accessing data from multiple spreadsheets? What type of validations/logic are you processing? Can you employ 'divide and conquer' approach? Finally, have you looked at using Excel's ETL backbone, power query as a solution? I do not know the performance criteria you have so if you can throw some more light on the same that will help .. Cheers, Suvadip
@johnbutler2750
@johnbutler2750 5 ай бұрын
I don’t think vba is the best tool for massive datasets. From my experience once you’ve done the usual disabling calculations, events and screen updating and are doing most of the work in arrays thats about as fast as you’ll get (advanced filter can be faster for large filtering operations). I believe vba is single threaded (worksheet formulas can use more) this can make large parallel operations slow I also doubt it takes advantage of the gpu much if at all. I think python may the better tool to use for large data analysis
@haidereasa
@haidereasa 4 ай бұрын
amazing !
@peterwooldridge7285
@peterwooldridge7285 5 ай бұрын
Just the best!!!
@omaraissa318
@omaraissa318 5 ай бұрын
i didn't watch the video but i have a trick about array i don't know if you are aware of. its how to redim preserve an array's first dimension, we know that we can only redim the second dimenssion , so the trick is to fill your Array in reverse order what in first dimension go into the second and what in the second go into first dimension, so then you redim preserve the second dimension after that you transpost the array into a variant using worksheetfunction.transpose to get your initial copied range.
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
The problem is that Transpose has a limit of 64000 rows for arrays.
@omaraissa318
@omaraissa318 5 ай бұрын
@@Excelmacromastery thank you i learned something
@muhammadkausar2842
@muhammadkausar2842 5 ай бұрын
​@@omaraissa318I have also the same problem, I use meta AI, but AI say, Copy this Array to new blank array and then resize it 😂 Thank u But still I am not completely understand of your comment I will screenshot it 😊
@schymi841
@schymi841 5 ай бұрын
Nice video but I have a feeling that you've covered this topic multiple times already in previous videos. As a long time fan of your content I consider myselft a master on arrays at this point :) I'd prefer more videos on Classes with some real world examples....
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks. I have covered a lot of this before. However, this video shows a step by step logic from beginning to end.
@alializadeh8195
@alializadeh8195 5 ай бұрын
Thanx
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Welcome
@simplydoing9596
@simplydoing9596 Ай бұрын
4:16 you r not pro ! Pro vba wud do this Dim totrow as long totrow= [Counta(Sheet1!A:A)] now automatically got total rows Dim Marks() as variant Redim Marks(totrow) as long for i= 1 to totrow ''' either throw marks array values '''' or use in any cmd. Msgbox Marks(i) Sheet1.Range("B"&i).value= Marks(i)*10 Next i Msgbox "Done !"
@Excelmacromastery
@Excelmacromastery Ай бұрын
😄😄 maybe watch the full video?
@7Denial7
@7Denial7 4 ай бұрын
I feel so alone and unworthy, because I know VBA like a pro, but no one needs VBA anymore... It makes me depressed...
@mathijs9365
@mathijs9365 Ай бұрын
Learn a modern language. Should not be difficult for u.
@Fredick.7
@Fredick.7 5 ай бұрын
🙂_______👍💯 .
@Excelmacromastery
@Excelmacromastery 5 ай бұрын
Thanks
@mathijs9365
@mathijs9365 Ай бұрын
Too long Too complicated Stick to the goal.
Python for VBA Developers in 30 Minutes
30:05
Excel Macro Mastery
Рет қаралды 16 М.
The Ultimate Guide to Copying Data using Excel VBA
31:05
Excel Macro Mastery
Рет қаралды 70 М.
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 20 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 45 МЛН
Creating Your Own Programming Language - Computerphile
21:15
Computerphile
Рет қаралды 186 М.
The 3 Critical Data Scenarios Every VBA User Should Know
20:41
Excel Macro Mastery
Рет қаралды 9 М.
Watch these 28 minutes if you want to become an Advanced VBA user...
29:01
Excel Macro Mastery
Рет қаралды 56 М.
25 Nooby VBA Habits You Need to Ditch Right Now
8:42
Excel Macro Mastery
Рет қаралды 26 М.
How To Master Arrays In Excel VBA + FREE MACROS & CHEAT SHEET
29:09
Excel For Freelancers
Рет қаралды 9 М.
How to get the Last Row in VBA(The Right Way!)
15:41
Excel Macro Mastery
Рет қаралды 166 М.
How to Use Class Interfaces in Excel VBA
20:16
Excel Macro Mastery
Рет қаралды 82 М.
Reduce VBA Errors by 90% (with this little-known Method)
16:59
Excel Macro Mastery
Рет қаралды 59 М.
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 265 М.
The Return of Procedural Programming - Richard Feldman
52:53
ChariotSolutions
Рет қаралды 45 М.
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 20 МЛН