OptionButton , Option Button ,OptionButton In VBA Excel, VBA (User Form) Beginner , userform, excel,
OptionButton , Option Button ,OptionButton In VBA Excel, VBA (User Form) Beginner , userform, excel, Microsoft Excel,
VBA Userform part-3,
***************VBA CODE*************************
Private Sub CommandButton1_Click()
Dim irow As Long
irow = Sheet1.Range("A" & Rows.Count).End(xlUp).Row + 1
With Sheet1
.Range("A" & irow).Value = Me.TextBox1.Value
''GENDER
If Me.OptionButton1.Value Then .Range("B" & irow).Value = "MALE"
If Me.OptionButton2.Value Then .Range("B" & irow).Value = "FEMALE"
If Me.OptionButton3.Value Then .Range("B" & irow).Value = "UNKNOWS"
'''MARITAL STATUS
If Me.OptionButton4.Value Then .Range("C" & irow).Value = "SINGL"
If Me.OptionButton5.Value Then .Range("C" & irow).Value = "MARRIED"
If Me.OptionButton6.Value Then .Range("C" & irow).Value = "OTHER"
End With
'RESET THE CONTROL ATER ENTERING
Me.TextBox1.Value = ""
Me.OptionButton1.Value = False
Me.OptionButton2.Value = False
Me.OptionButton3.Value = False
Me.OptionButton4.Value = False
Me.OptionButton5.Value = False
Me.OptionButton6.Value = False
MsgBox " DATA ENTERED SUCCESSFULLY!!"
End Sub
BY@MANOJ KUMAR FROM BHORHA, SIMRI BAKHTIYARPUR,SAHARSA, BIHAR,
Видео OptionButton , Option Button ,OptionButton In VBA Excel, VBA (User Form) Beginner , userform, excel, канала MANOJ KUMAR EXCEL
VBA Userform part-3,
***************VBA CODE*************************
Private Sub CommandButton1_Click()
Dim irow As Long
irow = Sheet1.Range("A" & Rows.Count).End(xlUp).Row + 1
With Sheet1
.Range("A" & irow).Value = Me.TextBox1.Value
''GENDER
If Me.OptionButton1.Value Then .Range("B" & irow).Value = "MALE"
If Me.OptionButton2.Value Then .Range("B" & irow).Value = "FEMALE"
If Me.OptionButton3.Value Then .Range("B" & irow).Value = "UNKNOWS"
'''MARITAL STATUS
If Me.OptionButton4.Value Then .Range("C" & irow).Value = "SINGL"
If Me.OptionButton5.Value Then .Range("C" & irow).Value = "MARRIED"
If Me.OptionButton6.Value Then .Range("C" & irow).Value = "OTHER"
End With
'RESET THE CONTROL ATER ENTERING
Me.TextBox1.Value = ""
Me.OptionButton1.Value = False
Me.OptionButton2.Value = False
Me.OptionButton3.Value = False
Me.OptionButton4.Value = False
Me.OptionButton5.Value = False
Me.OptionButton6.Value = False
MsgBox " DATA ENTERED SUCCESSFULLY!!"
End Sub
BY@MANOJ KUMAR FROM BHORHA, SIMRI BAKHTIYARPUR,SAHARSA, BIHAR,
Видео OptionButton , Option Button ,OptionButton In VBA Excel, VBA (User Form) Beginner , userform, excel, канала MANOJ KUMAR EXCEL
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
select and remove duplicates values in excel |Excel Tutorial: How to Use Paste Special Option for Advanced Data Manipulation| Parts-2Excel Tutorial: How to Crop to Shapes in Excel #excel #shortsUltimate Daily/Monthly Excel Checklists: Streamline Your Workflow and Boost Productivity#excelConverting Single Column to Two Columns in Microsoft Word | Quick Tutorial #worldExcel Tutorial: Highlighting Cells Based on Criteria with Conditional Formattingdynamic range pivot table excel | Dynamic Range for a Pivot Table using the Offset FunctionHow to calculate Rank in excel #shorts #excelshortsvideo #excellink text box to cell in excel | excelINSERT ALL PHOTOS BY 1 CLICK ,INSERT ALL PHOTOS BY 1 CLICK in excel, excel, Microsoft excel, vbawrite number as text in excel | how to change color of active cell in excel | excelmaintain store qty based on minimum balance in excel | using conditional format |excelExcel SUMIF Formula: How to Use this Handy Function to Sum Data Based on Specific Criteriaexcel if range of cells contains specific text | partial text in excel | exceltop 5 short key with ctrl in excel #shorts #excelshortsvideo #excelHow to Use Custom Cell Formatting to Display Millions and Thousands in Excel #excelAlign Text in the Same Paragraph in MS Word: 3 Easy Methods #wordscustomize quick access toolbar in excel | autofitted in excel | EXCELExcel Data Validation: How to Limit Whole Numbers to Values Equal to a Specified NumberExcel Formula Not Working Automatically? Find Solutions Here3d formula in excel | consolidate data report in excel | consolidate in excel | excel