Nice one Kevin - glad you enjoyed the video. Thanks for helping the alg with your comment and have a nice day.
@spongebobby188Ай бұрын
NGL...this is what I needed to see after hours of trying to figure it out with other videos. Only problem now is to figure out how to create new calculated measures!
@thesmallmanАй бұрын
I'm glad it got you closer, thanks for your feedback.
@yosef-yosef94145 ай бұрын
This code are fit when you use other laptop or computer right?
@thesmallman5 ай бұрын
Yes works on any type of computer.
@jasonschmidt55346 ай бұрын
Hey Marcus, I have a code to create a file based on cell value, however I want to have a directory create by same cell value and the file in the directory. How would I integrate directory creation into the code. Private Sub CommandButton2_Click() 'Show the Save As dialog to allow folder to be chosen Dim FileName As Variant Dim ValCellB2 As String Dim Path As String ValCellB2 = Range("B2").Value Path = "B:\Blend Chemist Data\Profile Approval\" FileName = Application.GetSaveAsFilename(Path + ValCellB2 + ".xlsm", _ "Excel Workbook,*.xlsm", 1, "Confirm or Edit filename and folder!") 'Oops, the user backed out of this so don't save the file If TypeName(FileName) = "Boolean" Then MsgBox "You didn't save your file!" Else 'Ok, all is good, we have the details, so go ahead and save the workbook ActiveWorkbook.SaveAs FileName MsgBox "File Saved!" End If End Sub
@thesmallman6 ай бұрын
Hi Jason I had a play round with it and got it working OK. What I did was put the new folder name and the new file name in cell B2. B2 is: MyFile Name\My Excel File So for example this might be: January\Jan Budget Data Then I just run the following and it produces a new folder called January with a file inside called Jan Budget data.xlsx All ever so good. Good luck with it - worked nicely at my end. Sub CreateFolder() Dim Path As String Dim Fname As String Dim ar() As String ar = Split([b2], "\") Path = "B:\Blend Chemist Data\Profile Approval\" Fname = Path & ar(0) If ar(0) <> "" And Not FolderExists(Fname) Then MkDir Fname End If ActiveWorkbook.SaveAs Path & ar(0) & ar(1) MsgBox "File Saved!" End Sub Function FolderExists(ByVal Path As String) As Boolean On Error Resume Next FolderExists = (GetAttr(Path) And vbDirectory) = vbDirectory On Error GoTo 0 End Function
@MollySlezak7 ай бұрын
Will this work when new data is entered?
@thesmallman7 ай бұрын
Yes as you add new data the Current Region will grow. So it is fully dynamic.
@blizzardr69808 ай бұрын
Is there any way to do this so a slicer filters 2 different tables of data - not pivot tables (they both have the same data in but I want to be able to filter different parts of my dashboard by different things)
@thesmallman7 ай бұрын
You can clearly see I have 2 different tables of data and use the joining method to make the two tables talk to one another through a third table. You have to do as I do to get the same result as I have achieved. Hope that helps.
@JieWei79129 ай бұрын
I was not able to see the pivot table from the other data source even after linking in the data model. Is there something I can do to refresh or make it appear?
@oxuanthanh533610 ай бұрын
Thanks for your sharing.
@thesmallman10 ай бұрын
Most welcome.
@FiliepLagae-bu9sv11 ай бұрын
not working for me 😞
@thesmallman10 ай бұрын
@thesmallman 0 seconds ago Please follow the steps exactly as I do them. If we are using Office 365 our versions of Excel are the same so it it does not work for you then you have not done exactly the same steps as what I have done. Re do the video and follow the steps precisely. 😀
@FiliepLagae-bu9sv10 ай бұрын
Ik heb het gevonden op een ander manier, maar van mij moest heel de tabel gesorteerd worden. Alleen de eerst kolom gaat mee en dat mag niet. Ik bekijk nog eens je filmpje.
@thesmallman10 ай бұрын
Dat is geweldig maat. Ik ben zo blij dat je een manier hebt gevonden. Het allerbeste met je leerproces.
@mr.write1433 Жыл бұрын
i only want the middle ? like row 6-10 and i want to be able to change it anytime without changing the codes in vba
@thesmallman Жыл бұрын
Depends what your data looks like. If you don't have data in row 7 then the current region method I shared will work. If you have data in row 7 you don't want included that becomes more involved. You could use the FIND in VBA to locate something unique in the bottom of your dataset and trap that row via a find and that way you never have to change your code provided you always have that unique item in the dataset.
@chandruchandru-uq6eg Жыл бұрын
It's awesome..... Can you upload the Excel sheet of data which have 30,000 rows of data.... So that everyone practice VBA with large Data
@thesmallman Жыл бұрын
Of course it should be on the website now - just under the video is the exact file I used. All the very best.
@chagnaaabbas6860 Жыл бұрын
Hello, teacher how can I contact you?
@thesmallman Жыл бұрын
You can go onto my website thesmallman.com my contact details are in the footer.
@not1AM Жыл бұрын
Hi. Thanks for this video.. but how can i make the address variable>>> something like: let A as variant A=C3 MsgBox [A].Value
@thesmallman Жыл бұрын
You were almost there. You have to trap the value when you are working out what A will be equal to. Sub test() Dim A As Variant A = [C3].Value MsgBox A End Sub Give the above a try. Should work.
@not1AM Жыл бұрын
Thanks for the response.. But what I am asking is how to make the address of a cell as variable. Not saving the value of a cell to a variable
@thesmallman Жыл бұрын
@@not1AM I do not understand what you are asking. How do you know where the cell is unless you declare it?
@Red00022 Жыл бұрын
This is very nice. Do you happen to know the difference between this and just using range.UsedRange?
@thesmallman Жыл бұрын
You can't set a range with the UsedRange method. You have to refere to the activesheet in the following way Activesheet.UsedRange. Which looks like you have recorded the macro. The above is more elegant in my opinion.
@firdausismail3020 Жыл бұрын
this looks sh*t!
@skiboltskie Жыл бұрын
I went through your website and your dashboards are flippen amazing. Am in awe. Well done, mate.
@thesmallman Жыл бұрын
That is a rock star comment. So grateful to hear and happy you like them. Thanks mate!!!
@shivanimahida5544 Жыл бұрын
Heyy its not workin for me its turning the nunbers into 0 rather than converting text to number.
@thesmallman Жыл бұрын
You and I are both using the same version of Excel so the reason it is not working is your did not follow the instructions carefully enough. It would not have worked for me if I had done what you did. Watch again and come back on here and tell others what you did wrong so everyone learns.
@shivanimahida5544 Жыл бұрын
Its not working for me
@thesmallman8 ай бұрын
You have not followed the instructions exactly. I'm using office 365 if we are both using the same version of Excel if you copy everything that I do you will get the same result.
@shivanimahida5544 Жыл бұрын
This is not working for me please help
@imranmohammed2644 Жыл бұрын
Marcus, i dont see you have put the link in description to download the excel file.
@thesmallman Жыл бұрын
That is correct I did not say I was giving this file away at any point. It was for demonstration purposes, to inspire others to go out and build it themselves. You learn nothing from taking someone else's IP. My website thesmallman.com has plenty of free example Excel dashboards.
@kenhiga6646 Жыл бұрын
Great video! Just one question. Can I change the order of the regions? I mean, it is possible to have europe at the top of the slicer, then America, etc? Thank you
@thesmallman Жыл бұрын
Yes. Slicers will order items ascending, descending or from a custom list. Make a custom list and the slicer will order the items based on your custom list. My blog post shows you how. www.thesmallman.com/excel-custom-sort-with-vba
@darshanapatel1260 Жыл бұрын
Hi Marcus, it would be great if you could share the steps as to how you created the wheel combo chart?
@andriuxcorrales1575 Жыл бұрын
why A1048576 ???
@thesmallman Жыл бұрын
It is the very bottom cell in Excel. Start at the very bottom and come up to the last used cell.
@germaingyesah5724 Жыл бұрын
Thank You for the insight. Much appreciated
@thesmallman7 ай бұрын
You are most welcome.
@manzarabbas5233 Жыл бұрын
Hi Marcus, this is very impressive, i want to create also, is it possible to share the data file,
@thesmallman Жыл бұрын
Sorry some files take me months to make, there are dozens of free files that have similar functionality on my site and this can be recreated from scratch.
@jarlewinnem Жыл бұрын
Love the way you explain things in details through out your videos! So much easier to gain the essence and concept behind the code, not missing out on mentioning what keyboard keys you use and why. Did also watch the video on how to create directory with VBA. Excellent! Thanks, keep up the good work! ;)
@thesmallman Жыл бұрын
Probably the nicest comment I have ever read about my videos. Thanks ever so much. I will keep trying to provide good quality solutions. Take care.
@rey.vasquez4365 Жыл бұрын
Hi Good morning Sir..would just like to ask your assistance on how I'll be able to count the events from a single cell? basically, i have a single cell that changes from "0" to "1" vice versa. (a data from PLC that is connected to excel thru (DDE ) dynamic data exchange. and I want to record how many times it changes from 0 to 1 ...thaNk you
@marchingideas298 Жыл бұрын
Exactly wht i was looking for
@salahuddin6266 Жыл бұрын
Can you please make a video on how do you make this tutorial from scratch
@thesmallman Жыл бұрын
I have made many videos about how to make dashboards exactly like this. They are all on my website.
@temitopelawal75882 жыл бұрын
Please do you know why i m only allowed to connect three charts to my slicer. It wont work for all my charts
@thesmallman2 жыл бұрын
I can't think why that would be an issue. I never connect charts to pivot tables only to Excel ranges. I only use pivot tables for quick summary information or to inform a slicer that I use to inform Excel calculation tables.
@vivinski2 жыл бұрын
How do you then use the Dynamic Range sub inside another macro so that VBA picks up the full data set when the amount of raw data is variable?
@thesmallman2 жыл бұрын
You can send a dynamic range between variables as follows Sub SendTO() Dim lr As Long lr = [A1048576].End(xlUp).Row Other lr End Sub Sub Other(TheLR) MsgBox TheLR End Sub This procedure sends the Last Row (LR) from SendTo to the Other procedure. This is how you get a variable to transfer between macros. Hope that helps.
@directorscompany3792 жыл бұрын
I need further help. I have created both relationships, my slicer has both report connections ticked and yet selecting an option on my slicer filters nothing.
@thesmallman2 жыл бұрын
Assuming you are using the same dataset, if you are getting a different result you need to look over the video again. If my end result and your end result are different there is a step you have missed.
@iKoreaan2 жыл бұрын
THANK YOU
@rubenvanderlaan42342 жыл бұрын
Is it also possible to connect a regular table to a slicer?
@thesmallman2 жыл бұрын
Yes it is possible to connect a table to a slicer. Slicers provide the option to connect to a Pivot table or an Excel table.
@jerryjones88362 жыл бұрын
Awesome presentation, thank you. I've been working this for a couple of days and in a short time you've taught me how to do it right as well as tools to help in troubleshooting. Thank you.
@thesmallman7 ай бұрын
This is awesome. Glad I could help.
@walkstreets2 жыл бұрын
Hi Marcus, How to get the output in diferent worksheet on same workbook rather output on same sheet?
@thesmallman7 ай бұрын
You just refer to the sheet you want to put the output on before the range reference. In vba it is workbook.worksheet.range.action. I have provided range.action. You just add worksheet.range.action and t hat will get your data on the other sheet.
@lagusgoudas27052 жыл бұрын
please send me this code in email box thank you
@mdimran1a2 жыл бұрын
That's Great. Well explained. Being an Excel VBA beginner I have a confusion. We are trying to load a excel range into memory so we can manipulations it faster. Dictionary is already a memory portion. why first we are transferring our range into an array before adding it to dictionary? secondly what would be fastest lookup Array or Dictionary or Collection?
@thesmallman2 жыл бұрын
Hi Imran - a dictionary will only store unique keys so you can't just put an entire dataset into the dictionary. You need to put it into an array then push only the unique items into the dictionary. You determine the breadth of those items that go into the dictionary. Secondly a dictionary is faster than an array and I am not sure what is faster the collection or the dictionary. Hope that helped.
@sayyamkhurana2 жыл бұрын
Hi Marcus, everything went fine until the last step. The thing is that only one pivot table(of the two that i had created) is being filtered at my end. I selected both the pivot tables in the report connection dialog box of the slicer but still only one pivot table is being filtered.
@directorscompany3792 жыл бұрын
I have this issue too.
@cindymesia4012 жыл бұрын
Sub Filter_Criteria() Dim Data_sh As Worksheet Dim Filter_Criteria_Sh As Worksheet Dim Output_sh As Worksheet Set Data_sh = ThisWorkbook.Sheets("Data") Set Filter_Criteria_Sh = ThisWorkbook.Sheets("Filter_Criteria") Set Output_sh = ThisWorkbook.Sheets("Output") Output_sh.UsedRange.Clear Data_sh.AutoFilterMode = False Dim Emp_list() As String Dim n As Integer n = Application.WorksheetFunction.CountA(Filter_Criteria_Sh.Range("A:A")) - 2 ReDim Emp_list(n) As String Dim i As Integer For i = 0 To n Emp_list(i) = Filter_Criteria_Sh.Range("A" & i + 2) Next i Data_sh.UsedRange.AutoFilter 2, Emp_list(), xlFilterValues Data_sh.UsedRange.Copy Filter_Criteria_Sh.Range("c1") Data_sh.AutoFilterMode = False End Sub
@cindymesia4012 жыл бұрын
sir, what if i filter multiple criteria but its just a keyword not the exact word? how would I do that
@thesmallman2 жыл бұрын
Hi Cindy - you can use wildcard characters in your code for instance if you wanted all fields with Data it would look like this. [A1:A100].AutoFilter 1, "*" & "Data" & "*" This would trap any line with Data in any part of the field. Hope this helps.
@cagatay33402 жыл бұрын
Hi Marcus, I would like to implement this on multiple columns. How can i make it possible? In addition, i want to do it over one sheet on excel workbook. Could you please share me full code from beginning to end point? I really need this code. Thanks
@Jane-kn7rj2 жыл бұрын
Excellent! Thank you very much for this.
@thesmallman2 жыл бұрын
You're very welcome!
@imranbhatti85802 жыл бұрын
Nice placement of every element and chart. No jumbled data. Great work.
@thesmallman2 жыл бұрын
Much appreciated!
@kebincui2 жыл бұрын
Excellent. Thanks for sharing
@thesmallman2 жыл бұрын
My pleasure!!!!
@dhirendranathmandal69492 жыл бұрын
Sir please want a video for Create a Macro to save Specific Worksheets in specific folder
@thesmallman2 жыл бұрын
There are plenty of examples of precisely this on my website. See if the following works for you. www.thesmallman.com/copy-sheet-and-save All the very best.
@zee.things2 жыл бұрын
Loved your work, helped a lot for Dashboard skills. Appreciate Hardwork on the World Map :)
@thesmallman2 жыл бұрын
Glad it helped!
@martinachupac26782 жыл бұрын
Thank you very much! It leveled up my spreadsheet instantly!
@thesmallman2 жыл бұрын
Excellent! Glad it helped.
@trsammy4322 жыл бұрын
How can you move them back and forth? I want one variable to go into one macro, run a calculation and spit out the output variable back into the first macro. Any insights would be appreciated!
@thesmallman2 жыл бұрын
I could be wrong but I don't think that is possible. Your workaround would be to use the second macros result and perform the necessary actions after the result is held in memory. Please post for others if you have a better workaround.