谁知道 Cells(c,1).value = i这个命令是中文描述是什么,啥意思?原程序是:Sub DoIt()c = 0For i = 1 To 9For j = i + 1 To 10For k = j + 1 To 11If 2 * j i + k Thenc = c + 1Cells(c,1).value = iCells(c,2).value = jCells(c,3).value = kEnd I

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 04:13:19
谁知道 Cells(c,1).value = i这个命令是中文描述是什么,啥意思?原程序是:Sub DoIt()c = 0For i = 1 To 9For j = i + 1 To 10For k = j + 1 To 11If 2 * j i + k Thenc = c + 1Cells(c,1).value = iCells(c,2).value = jCells(c,3).value = kEnd I

谁知道 Cells(c,1).value = i这个命令是中文描述是什么,啥意思?原程序是:Sub DoIt()c = 0For i = 1 To 9For j = i + 1 To 10For k = j + 1 To 11If 2 * j i + k Thenc = c + 1Cells(c,1).value = iCells(c,2).value = jCells(c,3).value = kEnd I
谁知道 Cells(c,1).value = i这个命令是中文描述是什么,啥意思?
原程序是:
Sub DoIt()
c = 0
For i = 1 To 9
For j = i + 1 To 10
For k = j + 1 To 11
If 2 * j i + k Then
c = c + 1
Cells(c,1).value = i
Cells(c,2).value = j
Cells(c,3).value = k
End If
Next k
Next j
Next i
End Sub

谁知道 Cells(c,1).value = i这个命令是中文描述是什么,啥意思?原程序是:Sub DoIt()c = 0For i = 1 To 9For j = i + 1 To 10For k = j + 1 To 11If 2 * j i + k Thenc = c + 1Cells(c,1).value = iCells(c,2).value = jCells(c,3).value = kEnd I
Cells是Excel对象Worksheet的属性,您可以如下例利用Cells属性对单元格赋值:
Private Sub Command1_Click()
Dim xl As Excel.Application
Set xl = New Excel.Application
xl.Visible = True 'make the excel application visible
xl.Workbooks.Add
xl.ActiveWorkbook.Worksheets("Sheet1").Cells(1,1).Value = "hello"
xl.ActiveWorkbook.SaveAs ("d:\book1.xls")
xl.Quit
Set xl = Nothing
End Sub

谁知道 Cells(c,1).value = i这个命令是中文描述是什么,啥意思?原程序是:Sub DoIt()c = 0For i = 1 To 9For j = i + 1 To 10For k = j + 1 To 11If 2 * j i + k Thenc = c + 1Cells(c,1).value = iCells(c,2).value = jCells(c,3).value = kEnd I excel中VBA函数 log10()Cells(3,k + 2).Value = Cells(6,19) * Power((Cells(3,k) + 273) * (Log10(Cells(3,30)) + Cells(2,23)) / 1000,2) + Cells(6,20) * Power((Cells(3,k) + 273) * (Log10(Cells(3,30)) + Cells(2,23)) / 1000,1) + Cells(6,21) '将这个 for each .in .语句 请赐教我这样写错在哪里?它还是照样把空白单元格错误的当成0值显示.for each c in activesheet.usedrange.cells if c.value then if cells(a,b)=cells(a,b+1) thenCells(a,b).Interior.ColorIndex = 6Cells(a,b + 请问在VBA中我要复制sheet2中的Range(Cells(1,1),Cells(3,28))到同一个文件的sheet1中,为什么出错Sheet1.Range(Cells(6,1),Cells(8,28)).Value = Sheet2.Range(Cells(1,1),Cells(3,28)).Value提示的错误是方法“range”作用于对 评定等级() Dim i As Integer For i = 3 To 11 t = Sheets(1).Cells(i,2).Value a = Val(Sheet1,Cells(1,3).Value)这句哪错了啊Sub 产品入库()Dim a As LongDim b As IntegerSheets(商品入库以及查询).SelectIf Trim(Cells(7,1).Value) = ThenMsgBox 日期请勿留空,vbOKOnlyExit SubEnd Ifa = Val(Sheet1,Cells(1,3).V 英语翻译b = ActiveSheet.UsedRange.Rows.Countc = ActiveSheet.UsedRange.Columns.CountFor i = 14 To bFor j = 1 To cmystr = ActiveSheet.Cells(i,j).Valuemystr = Trim(mystr)ActiveSheet.Cells(i,j).Value = mystrNextNext vba问题:for each c in range(“t1:es1”) if cells(“a1:vba问题:for each c in range(“t1:es1”)if cells(“a1:h1”).value=c .value then.请问if语句有什么错误,我想表达就是a1:h1里面的每个单元格 我要在VB 中定义一个全局的循环变量假设为q,假设在Form3.Label1.Caption = objExcel.ActiveSheet.Cells(q,4).Value中q的值为13,那么在Form5.Label1(1).Caption = objExcel.ActiveSheet.Cells(q,6).Value中q的值也要为13,该如何 有关matlab的sum函数问题,其中sum(x,y)的表示方法是什么意思?急用n=10;z = zeros(n,n);cells = z;cells(n/2,.25*n:.75*n) = 1;cells(.25*n:.75*n,n/2) = 1;x = 2:n-1;y = 2:n-1;sum(x,y) = cells(x,y-1) + cells(x,y+1) + ...cells(x-1,y) + c Goodscode = this.dataGridView1.Rows[i].Cells[0].Value.ToString().Trim();中cell[0]怎样理解 这条语句是什么意思啊convert.toint32(datagridview.Rows[rows].Cells[easy].value) 怎么实现 DataGridView3.Rows(0).Cells(0).value值保留一位小数,比如10.1,11.2,10.0 For i = 1 To .Cells. Select the ExceptionA supportive cell wall is found surrounding the plasma membrane of each of the following types of cells EXCEPT ____.Answer A.plant cells B.fungal cells C.many types of protists D.animal cells E.bacterial cells this.niPH.Value = dataGridView1.SelectedRows[0].Cells[温度].Value.ToString ();这句话报错是无法从string类型隐式转换为double怎么解决这个问题啊 value[1] = value[1] * 2 For i = 45 To [L46].End(1).Row 谁能帮我解释下具体程序如下:Sub Macro9() Sheets(PP&BS(按胶系)).Select On Error Resume NextDim i, j, cFor i = 45 To [L46].End(1).Row c = Cells(i, 256).End(1).Column Cells(i, 5) = Cells(i, 6) =