Tag: radio button

ASP MVC ClosedXML在Excel工作表中设置单选button

我正在使用ClosedXML NuGet包编辑现有的Excel文件。 我可以用文本编辑单元格,但也有一个单选button字段的性别。 我怎样才能设置这些单选button? 设置文本的示例: sheet.Cells(“F14”)。Value =“Text”

OptionButton编号循环

希望你有一个优雅的解决scheme,可能是一个简单的问题! 我正在使用ActiveX选项button,但在工作表中,而不是一个用户窗体或一个组框,因为工作表的devise方式。 该代码包含在一个选项button代码forms内的一个子。 这段代码很好理解了我正在做的事情: Public Sub SectionD_Click() If OptionButton1.Value = True Then ThisWorkbook.Sheets("Boolean").Range("B2").Value = 1 ElseIf OptionButton2.Value = True Then ThisWorkbook.Sheets("Boolean").Range("B2").Value = 0 End If If OptionButton3.Value = True Then ThisWorkbook.Sheets("Boolean").Range("B3").Value = 1 ElseIf OptionButton4.Value = True Then ThisWorkbook.Sheets("Boolean").Range("B3").Value = 0 End If If OptionButton5.Value = True Then ThisWorkbook.Sheets("Boolean").Range("B4").Value = 1 ElseIf OptionButton6.Value = True […]

selectExcel VBA选项button作为默认开始

我打算在excel文档打开时默认select一个首选的非activex单选button。 我正在尝试做什么: Private Sub Workbook_Open() ActiveSheet.Shapes("Option Button 1").Value = True End Sub 但是我得到这个错误消息: 运行时错误“438”: 对象不支持此方法的属性

VBA与网页上的单选button进行交互

编辑:几个月后,我再次尝试使用我第一次尝试相同的语法(下面张贴)。 出于某种原因,它的工作! 也许除了我的语法之外的东西导致无效… END EDIT 我一直在寻找论坛几个小时,现在试图find解决这个问题,但我没有尝试的东西工作。 我正在使用VBA来自动化在SurveyMonkey上创build调查的过程。 到目前为止,我已经能够: login到我的帐户, 点击几个超链接来创build一个新的响应收集器, 命名收集器, 转到collections夹设置, 然后,select四个单选button中的三个来更改收集器设置。 问题不在于我无法select单选button; 我的代码select前三个button就好了。 令我感到困惑的是第四个button不会改变! 我对每个button使用相同的过程,所以我不知道为什么最后一个button不会select。 这是我的代码部分: objIE.Document.getElementById("rdlResponseType_1").Click 'Allow multiple responses = Yes objIE.Document.getElementById("rdlResponseEdit_1").Click 'Allow Responses to be Edited = Yes objIE.Document.getElementById("rdlThankyou_1").Click 'Display a "Thank You" page? = Yes objIE.Document.getElementById("rdlCompleteOpt_1").Click 'Survey Completion = Close Window 这是单选button的HTML: <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"> <tr id="CompleteOptDesc"> […]