Sports Fixtures Generator - A Real-World VBA Application

  Рет қаралды 12,449

Excel Macro Mastery

Excel Macro Mastery

Күн бұрын

Пікірлер: 40
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
I hope you enjoy this video and make sure to download the source code from the description below the video. Let me know what you think of the video in the comments below.
@hammeedabdo.82
@hammeedabdo.82 2 жыл бұрын
your project for trading simulator was great. We are still missing a project for a trading system. It's great and deserved. Thank you for your beautiful projects.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks. Glad you like it.
@hammeedabdo.82
@hammeedabdo.82 2 жыл бұрын
@@Excelmacromastery Thnanks Mr. Paul, we are still waiting for your awesome trading system. how to stream real time data of Forex or Stock in Excel from many brokers and how to manage and set multi orders types. how to close or edit the all orders or a part of the orders.
@amonmutesi2481
@amonmutesi2481 Жыл бұрын
Thank you so much for this video! I have just begun my journey into VBA programming and this has really inspired me. The challenge I am having is adapting this knowledge to create a generator for knockout competitions that involves the group stage. Hopefully I can get it right!!! Thank you for pointing me in the right direction!
@scouter-xn6zi
@scouter-xn6zi 2 жыл бұрын
The tutorial is good and it seems even more interesting for sports fans (like me). And that doesn't change from the comments below. What I would have preferred is the "structure" (the planning of the process) to be reversed ; start from what we have in mind, what we need to do and how we access it and materialize it. The mindset behind this tutorial is rather how you made it, which actually (sort of) skips the pattern. However, just like I mentioned, I too did enjoy it.
@lollandz
@lollandz 2 жыл бұрын
Excellent video. So much information here, i have to go through this video numerous times. You are the best VBA teacher i have come across online. No question that my VBA skill is from your videos.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks
@Lykoskia
@Lykoskia 2 жыл бұрын
Omg, mind = blown!! Great work as always Paul, you helped me a lot in my (thus far short) vba developer career, lost for words! You are truly an inspiration!
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Great to hear Alan!
@bobbyterupo3522
@bobbyterupo3522 2 жыл бұрын
This is another Great tutorial on encapsulation, Paul. Keep up the great work. I've adopted a great deal of your concepts in coding to my own project that greatly reduced the downtime it usually takes to complete/update. Thank you for sharing you knowledge on Excel VBA.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks Bobby. Glad it helped.
@bakwoludovic117
@bakwoludovic117 3 ай бұрын
may God adds you many more years on earth.
@KM-co5mx
@KM-co5mx 2 жыл бұрын
I like the way you combined the passion of Football with the power of VBA! Very Cool 😎
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks
@vbaclasses3553
@vbaclasses3553 2 жыл бұрын
Excellent video and application, as always Paul. Thank you for sharing.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
You're welcome
@scottjones1474
@scottjones1474 10 ай бұрын
Hi, This is great !!, i have a request, any chance of implementing 'point deductions ..?, i cannot figure this bit out :/ Thank you
@chrisolearymusic
@chrisolearymusic 2 жыл бұрын
Hi Paul, excellent video. Please can you/someone recommend some videos on understanding how and why to use classes instead of modules and the passing through of variables between them?
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Check out this playlist kzbin.info/aero/PL7ScsebMq5uU_H6L3yHqedYMmnxUqQfa7
@karthikeyanb6897
@karthikeyanb6897 2 жыл бұрын
Can you post video about how to allocate work equally using excel formula or VBA?
@vijaysahal4556
@vijaysahal4556 2 жыл бұрын
Wow you are always great sir
@jayknox-crichton3130
@jayknox-crichton3130 2 жыл бұрын
love the vid's and this is a handy way to organise matches compared to the clunky way I was generating them. I prefer find & offset to find numbers or strings that users have reference to. I would have liked to see all of the code (calculations) instead of just an import otherwise thumbs up !
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks Jay
@jatinnandwani6678
@jatinnandwani6678 2 жыл бұрын
Thank you so much
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
You're welcome
@BenjaminHouot
@BenjaminHouot 2 жыл бұрын
You do a great job, plz continue to make more videos. But i hate variable i, j, ... in For loop, please name it (meetingNumber for Example). Also i prefered to have Named range if possible instead of constant. And i understand it's for the example, but i try to keep the code in another wbk. so that the code could be use for different wbk. And i can update the code for user easily :)
@BenjaminHouot
@BenjaminHouot 2 жыл бұрын
and thank you for Ctrl + Shift + F2, i have forgotten this shortcut
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks Benjamin. i and j are standard in loops so changing them will make the code confusing. I do use proper naming for others though.
@cabbaaz
@cabbaaz Жыл бұрын
You have done great job but your code is really mixing and complicated to understand. Hope you'll make it clear next time
@nadermounir8228
@nadermounir8228 2 жыл бұрын
I am not good at class modules and it is very difficult to understand it. It is not common to find videos on class modules on KZbin :(
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks for the feedback Nader.
@jerryjones8836
@jerryjones8836 2 жыл бұрын
Really enjoying these videos and the referenced material. Thank you for creating, posting and sharing. FYI Two playlists are in the "More" section, but they are the same KZbin PlayList: Excel VBA Copying and Filtering Data: kzbin.info/aero/PL7... KZbin PlayList: Excel VBA Arrays: kzbin.info/aero/PL7...
@mdcs1992
@mdcs1992 2 жыл бұрын
For actual use this is fundamentally flawed. I play Sports Replay games. For instance, I used it to create fixtures for the 1971-72 English 1st Division season (22 teams). The code does create Home and Away Games for every team but...(and it's a BIG but), it ignores the "Real World" where teams as much as possible, play alternate fixtures Home then Away, then Home etc. So the problem is your code ignores this completely and e.g. Arsenal play their first 21 of their games at Home consecutively and then all their 21 Away games in the next half of the season. With Chelsea it's about 18 consecutive matches at Home. This doesn't and wouldn't happen in real-life for a myriad of reasons. Too many to list here. These days, teams do sometimes play a few games consecutively at Home or Away but not months worth of fixtures Home or Away in a row. Wish I'd found out before building an entire Excel Workbook with fixtures created from this code. Not so much Excel Mastery as mystery why the uploader didn't take real life into account. This is code I discovered years ago. It works for any number of teams (just change the value of N). All that's needed then is to substitute the numbers eg. 1 to 20 with team names. Sub all_play_all() Dim c() As Variant, u() As Variant, flg As Byte Dim i As Long, j As Long, n As Long n = 20 If n Mod 2 = 1 Then n = n + 1: flg = 1 ReDim c(1 To n, 1 To n / 2 + 1), u(1 To n) For i = 1 To n - 1 If flg = 1 Then u(n) = "bye" Else u(n) = n For j = 1 To n - 1 u(j) = i + j - 1 If u(j) > n - 1 Then u(j) = u(j) - n + 1 Next j For j = 1 To n / 2 c(i, j + 1) = u(j) & " " & u(n - j + 1) Next j c(i, 1) = "Week " & i Next i Range("A1").Resize(n, n / 2 + 1) = c End Sub
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
With the code you supplied the last team matches are all away. if you want alternate fixtures with the sports fixtures code simply read through the full fixtures and swap every second home fixture with it's corresponding away fixture.
@noviceprogrammer2011
@noviceprogrammer2011 2 жыл бұрын
I understand you are demonstrating object oriented VBA. To clear the range of fixtures, your code goes through these stages: Public Sub ClearFixtures() With New clsFixtureWriter .SetRange GetStartRange() .Clear RGB(255, 242, 204) End With End Sub Private Function GetStartRange() As Range Set GetStartRange = shFixtures.Range(FIXTURE_RANGE) End Function Public Sub SetRange(ByVal startRange As Range) Set m_startRange = startRange End Sub Then finally to do the actual clearing: Public Sub Clear(Optional backgroundColor As Long = 0) With m_startRange.CurrentRegion .Offset(1).Clear If backgroundColor 0 Then .Offset(2).Interior.color = backgroundColor End If End With End Sub But it's much simpler instead to write: Public Sub ClearFixtures() shFixtures.Range(FIXTURE_RANGE).CurrentRegion.Offset(1, 0).Clear End Sub Can you explain the benefits of your way?
@freeliberalminds
@freeliberalminds 2 жыл бұрын
Awesome.
@Excelmacromastery
@Excelmacromastery 2 жыл бұрын
Thanks
@dwaindean1730
@dwaindean1730 2 жыл бұрын
𝕡𝕣𝕠𝕞𝕠𝕤𝕞 💦
How to Design and Code an Excel VBA Application Like a Pro
42:27
Excel Macro Mastery
Рет қаралды 217 М.
Reduce VBA Errors by 90% (with this little-known Method)
16:59
Excel Macro Mastery
Рет қаралды 58 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 153 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 202 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 3,1 МЛН
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 5 МЛН
10 Years of VBA Array Knowledge in 40 Mins
41:57
Excel Macro Mastery
Рет қаралды 22 М.
You Won’t Believe What Excel’s Copilot Can Do! (new updates)
10:37
How VBA Objects Really Work in Memory
17:46
Excel Macro Mastery
Рет қаралды 55 М.
How to Use Class Interfaces in Excel VBA
20:16
Excel Macro Mastery
Рет қаралды 81 М.
Can This Code Be Saved?  | VBA Code Audit
10:58
Excel Macro Mastery
Рет қаралды 11 М.
FREE Tool to Automate Your Repetitive and Boring Tasks | AutoHotkey
16:12
How to use ChatGPT to maximize your VBA skills
12:04
Excel Macro Mastery
Рет қаралды 26 М.
Create an Excel VBA Application Like a Pro
42:21
Excel Macro Mastery
Рет қаралды 39 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 153 МЛН