Sort The Days Of The Month İnto Textboxes When You Select The Year İn Combobox1 Online Excel and Excel Macro (VBA) Courses Copy Macro 'For online Excel courses click: https://www.excelsizeyeter.com/excelwithkenan.com/udemy_giris.php combo1 de yıllar 'combo2 de aylar (1,2,...12) '31 tanede textbox oldugunu varsaydim. Private Sub ComboBox2_Change() If ComboBox2 = 12 Then x = DateDiff("d", "1" & "." & ComboBox2 & "." & ComboBox1, "1" & "." & "1" & "." & ComboBox1 + 1) Else x = DateDiff("d", "1" & "." & ComboBox2 & "." & ComboBox1, "1" & "." & ComboBox2 + 1 & "." & ComboBox1) End If z = 1 Dim ctrl As Control For Each ctrl In UserForm1.Controls If TypeName(ctrl) = "TextBox" Then ctrl.Text = "" End If Next ctrl For Each ctrl In UserForm1.Controls If TypeName(ctrl) = "TextBox" Then ctrl.Text = z If z = x Then Exit For z = z + 1 End If Next ctrl End Sub Report problem with this macro This macro does not work. There's an error in the code. Other You can write your comments about the error in the box below. Report error ALL MACROS Youtube Channel The following macros may be useful for you. Similar Results NoMacro Name 1 Sort the days of the month into textboxes when you select the year in combobox1 2 excel operators hk 3 inserts months as sheet / pages Specifies days in detail 4 When you click on any cell, it scrolls to the right and writes the numbers of the days in that month and color the weekends. 5 When I select the same number at the bottom of the order, I want the information of the selected number to be imported into the textbox. 6 summer adds months to sheet / pages 7 Adds months as a sheet / page and writes the days of the month and goes to the active month and day 8 Convert Day to Day: if you have a date on your worksheet and want to convert all these dates into days, this code is for you. Just select the range of cells and run this macro. 9 Highlight Specific Text: Suppose you have a large data set and want to control a specific value. You can use this code for this. When you run, you receive an input box to enter the value to search for. 10 prints all sheet / pages with data or scans but does not print 11 Convert Date to Years: This code converts dates into the year of the month. 12 click any cell and scroll to the right to write the number of days in that month 13 write the days of this month to the right write the day to the child cell and color the weekends 14 saving and sorting alphabetically 15 Search for a word in 30 excel files 16 import the active cell into listbox and textbox (using spinbutton) 17 finds the last day of the month writes to the active cell 18 Undo cells with 0 19 textbox1e date textbox2 month when you enter the value of the intersection of the label on the sheet / page 20 translate the number / number into English (in dollars and cents)