Тёмный
ExcelVbaIsFun
ExcelVbaIsFun
ExcelVbaIsFun
Подписаться
Learn how to write programs in Excel and use Visual Basic code to automate your experience. Using VBA, you can write custom reports that will clear out and re-write each time you run. You can do anything from hiding a worksheet to running advanced searches and custom functions - all with simple visual basic code! Join me as we learn the exciting and little known secrets of Excel - behind the scenes.
Комментарии
@Melki
@Melki 2 часа назад
Thank you
@Mr_Game_And_Walk
@Mr_Game_And_Walk 5 дней назад
Thank you for this. I had forgotten about the keyDown event.
@BasharatAli-xs7mm
@BasharatAli-xs7mm 9 дней назад
Thank you for informative video
@farooqm2820
@farooqm2820 12 дней назад
How can i apply Vlookup on combo box??
@gerardvaneggermond2067
@gerardvaneggermond2067 20 дней назад
Hello, I find this very interesting, maybe you can help me, look I have this formula: Range("D2").Select ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Player10,4,FALSE)" Range("D3").Select ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Player11,4,FALSE)" Range("D4").Select ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Player12,4,FALSE)" Range("D5").Select ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],Player13,4,FALSE)" This continues until "D14", you also have this in "G2:G14", you also see that the players change every now and then there are 18 players. columns"K2:K14";"N2:N14";"R2:R14";"U2;U14";"D2:D14";"D16:D28";etc. It's a pity I can't give a shot then you have an idea. How can I do this in a loop, can you give an example so I can try to continue, thanks in advance.
@Amirmunir1961
@Amirmunir1961 24 дня назад
Morning listened your VBA #26 and found useful. I have a query. I want let say current month is March and for some calculation I want February instead March. How to code this in excel vba for form.
@Miku-xg3qb
@Miku-xg3qb 28 дней назад
I'm sorry but I didn't make it because you don't show the names of lbl in cal?! I did that and it gives me endless errors! Why don't you share the file so we can learn, because it's so difficult, and not all things are shown apparently?!
@Melki
@Melki Месяц назад
Thank you
@QuantumIdeas
@QuantumIdeas Месяц назад
Awesome! I was looking around for a spinwheel numeric input in excel and this gave me the appropriate answer. Smashed the like button...
@2615Prasad
@2615Prasad Месяц назад
My text file has 16500 lines. I want to load only some specific lines to Excel. There is a unique field by which that particular line can be identified. How to do it
@Sancarn
@Sancarn Месяц назад
Randbetween is a udf which first returns 2, then 12 🤣 Or you might be using a fixed seed in VBA.
@nompendulosilinda4829
@nompendulosilinda4829 Месяц назад
Hi, can you kindly assist with the code im trying to trigger the code to run by command button, the sub updatechart gives me a compile error sub or function not defined Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'Declare variables Dim yAxisMin As Long Dim yAxisMax As Long 'Get minimum and maximum values in data yAxisMin = WorksheetFunction.Min(Target) 'Update chart data series If cboProductCategory.Value = "All" Then .Chart.SeriesCollection.Delete ElseIf cboProductCategory.Value <> "" Then .Chart.SeriesCollection.NewSeries Dim CategoryData As String CategoryData = Worksheets("Worksheet 3").Range("Data").Offset(0, (cboProductCategory.Value - 1) * 25).Address .Chart.ChartTitle.Text = cboProductCategory.Value End Sub End If Sub UpdateChart() Chart_Data End Sub
@gnasa2102
@gnasa2102 Месяц назад
Thank you, mate. Love all your tutorials
@bodinian
@bodinian 2 месяца назад
There is no "Remove Module" option for me. How else can it be removed?
@jaredwaters4633
@jaredwaters4633 2 месяца назад
Excellent. I'm just getting into this and this was very helpful
@fitzgeraldacera1860
@fitzgeraldacera1860 2 месяца назад
Thank you Sir
@Robbie1987a
@Robbie1987a 2 месяца назад
Yes it's almost perfect solution (but not really). You need to remember guys if you close your UserForm, the workbook will be still open in the system! (because it's hidden). If there is another instance of excel running and you run the padlock exe, it will hide automatically all other workbooks also. This can create many annoying situations to the final users as an app developer you need to predict all of this events. Adding the following code: Private Sub UserForm_Terminate() If Application.Workbooks.Count = 1 Then Application.Quit Else Application.Workbooks("AppName").Close End If Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.Visible = True ThisWorkbook.Saved = True End Sub This code returns all other workbooks to visible after app close, hovever it's not solving the problem of dissapiering workbooks after app start. The user will have to run his files once again to show already running but hidden workbooks. I think we should at least inform final user about this condition in MsgBox or we can mark the option in Padlock "do not allow other instances of excel when opening the protected workbook." - but this will make your app quite annoying also. If anyone have perfect solution for this problem feel free to comment but i think we reached the Excel limitations here.
@janeiro301
@janeiro301 3 месяца назад
ward print buttom excel
@mikehogan728
@mikehogan728 3 месяца назад
I've been banging my head against a wall for a few hours on how to print multiple sheets via checkbox. This video made me say, "No way." It works perfectly. Thanks!
@mikefekno122
@mikefekno122 3 месяца назад
Hi. How can i select all these cells - can you help please RANGE("K" & Rows.Count).End(xlUp).Offset(0).Select RANGE("R" & Rows.Count).End(xlUp).Offset(-8, 0).Select Or can we use x = RANGE("K" & Rows.Count).End(xlUp).Offset(0).Select y = RANGE("R" & Rows.Count).End(xlUp).Offset(-8, 0).Select Then how we can write the vba ?
@thezor2314
@thezor2314 3 месяца назад
How do I make only the text bold
@cihanaltay884
@cihanaltay884 3 месяца назад
The bee puts your tounge
@dochkei8535
@dochkei8535 4 месяца назад
It was eyeopening code using karnell.
@vincenzobadalucco2737
@vincenzobadalucco2737 4 месяца назад
Thanks ser, great work
@csaa2540
@csaa2540 4 месяца назад
Hello. Is there an easy way to adapt the code to do the opposite i.e. delete all rows that don't have at least one colored cell?
@KZKZZ-l4j
@KZKZZ-l4j 4 месяца назад
Thank you very much it works !!!!
@agusp1951
@agusp1951 4 месяца назад
Can you do this for Labels?
@marksh5507
@marksh5507 4 месяца назад
i want code to don"t change one textbox onley can change any textbox except one in userform thanks
@karthi231093
@karthi231093 5 месяцев назад
Hello Sir My concept is to create a folder with Active cell name. If I click any cell in the excel then it has to create a folder with that name Is it possible to do ??
@afeeqzabiulla166
@afeeqzabiulla166 6 месяцев назад
please provide the link to part 1 of the video
@ZahratAlafrah
@ZahratAlafrah 6 месяцев назад
‫ Thank you, but I have a problem ...... Exception: Service invoked too many times for one day: route
@israelterorisprikopat
@israelterorisprikopat 6 месяцев назад
To compare 2 location. It use google map free. Is it okay? Or there are limitation request?
@thaswikasri2642
@thaswikasri2642 6 месяцев назад
Thank you 🙂. My problem was solved
@AyushmanThakur-mo3ee
@AyushmanThakur-mo3ee 6 месяцев назад
Hi Sir Ayushman This side can we use "Match Function" in VBA code by that we don't have to change Column again and again and we write our custom formula and drag the formula is all the cells then it will work or not Thanks so much Have a great day...
@MS-fp5jq
@MS-fp5jq 6 месяцев назад
dude spent entire video without a second on my to create one of these grids
@cherubicchild5
@cherubicchild5 6 месяцев назад
@angelbhaves1 Did you figure it out? As I have to accomplish the same.
@LordBransty
@LordBransty 6 месяцев назад
Thank you! Great video!
@juansaumell5402
@juansaumell5402 6 месяцев назад
Hi everyone, for those who want to fill the activex combobox with a ListName, no matter in which Sheet it is , what you need to do is the following: 1. Select any range in the Sheet where you have your original list and define its name in the format =NameOfYourSheet!A1:A100 This step is only for have a Name in that format , which is the one who the combobox accept without problem. 2. Then insert that name in the "ListFillRange" in the ComboBox properties 3. In name manager option, edit the "Refers to" scope of your previous name created , to any list that you want. In my case was a column from a Table in the format =Table1[Column1]
@СергейПетров-з7п6ф
@СергейПетров-з7п6ф 6 месяцев назад
А как написать код, чтобы кнопка удаляла данные из textbox?
@duluthdjs2588
@duluthdjs2588 6 месяцев назад
Any idea how to past the route link to google maps in a column next to the miles calculated?
@radenwirawan5351
@radenwirawan5351 6 месяцев назад
Really helpful, thank you!
@DodemMahapat-h2x
@DodemMahapat-h2x 7 месяцев назад
I am CONFUSE? what is the application of this tutorial? how does it applies to our work?
@veronicafernandez7312
@veronicafernandez7312 7 месяцев назад
Excellent
@RobertoEscobar-u5v
@RobertoEscobar-u5v 7 месяцев назад
Dang
@somjos01
@somjos01 7 месяцев назад
Will you be able to post your code in the description ? It's not showing the entire code.
@GeronimoBraier
@GeronimoBraier 7 месяцев назад
Perfect explanation!!! You helped me a lot with this video!!!
@manfredkrob3314
@manfredkrob3314 7 месяцев назад
Hi Dan, thanks for this tutorial. But i have an Issue. I work with Excel 365 german Version. I got Debug with Message "FCompiling errors Variable not defined". Where is my failure? Could you help?
@manfredkrob3314
@manfredkrob3314 7 месяцев назад
I found it. This Code is functional Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean) Dim cVal As String Dim cLen As Integer Dim numSigns As String cVal = Me.TextBox1.Value cLen = Len(cVal) numSigns = String(cLen, "#") If cVal Like numSigns Then 'do nothing Else MsgBox " Nur Zahlen eingeben" Cancel = True 'highlight entire Text With Me.TextBox1 .SelStart = 0 .SelLength = cLen .SetFocus End With End If End Sub
@napoleonblown_appart1942
@napoleonblown_appart1942 7 месяцев назад
code is =SUM(B2:B15)
@RennieAsh
@RennieAsh 8 месяцев назад
It's getting hot in here
@shakhobiddinnakiev6767
@shakhobiddinnakiev6767 8 месяцев назад
thank you bro!!!