Tag: 端点

VBA在MsgBox中返回2个变体

这是一个简单的math定理演示的开始。 当我运行这个macros没有系数或度出现在MsgBox。 Option Explicit Sub Function1() Dim Degree, Coefficient MsgBox "Enter polynomial by terms." Cells(1, 2).Value = Degree Cells(2, 2).Value = Coefficient If IsNumeric(Degree) = True Then Else: MsgBox "IsNumeric(Degree)=False)" If IsNumeric(Coefficient) = True Then Else: MsgBox "IsNumeric(Coefficient)=False" MsgBox Coefficient & "x^" & Degree End If End If End Sub 编辑:评论的build议的新版本的代码(仍然无法正常工作): Option Explicit Sub Function1() […]

如何使用Powershell将CSV导出到Excel

我正尝试使用Powershell将完整的CSV导出到Excel。 我坚持使用静态列名称的一点。 但是,如果我的CSV具有通用的未知标题名称,则这不起作用。 重现步骤 打开PowerShell ISE并复制并粘贴以下独立代码。 用F5运行它 “C:\ WINDOWS \ SYSTEM32 \ WindowsPowerShell \ V1.0 \ powershell_ise.exe” Get-Process | Export-Csv -Path $env:temp\process.csv -NoTypeInformation $processes = Import-Csv -Path $env:temp\process.csv $Excel = New-Object -ComObject excel.application $workbook = $Excel.workbooks.add() $i = 1 foreach($process in $processes) { $excel.cells.item($i,1) = $process.name $excel.cells.item($i,2) = $process.vm $i++ } Remove-Item $env:temp\process.csv $Excel.visible = […]

在Excel中检查数字是否是限制(范围的终点)?

我有在Excel中的数据,看起来像这样: 4\10 7\10 2\3 9\9 8\8 1\5 2\4 2\5 如果第一个数字等于1,或者在第二个数字的上限之后,则被分类为“是”。 否则它被分类为“否”。 我想检查斜杠之前的数字是否是斜线后的范围数字的终点。 例如: 在B栏里填什么公式?