十五的月亮
发表于 2012-1-20 23:18
一、1、select是属性Copy是方法2、,变. =变空格 ;变, Selection.PasteSpecial.Paste xlPasteAll,Operation:=xlMultiply二、Range("a:a").SpecialCells(xlCellTypeBlanks)对象;.EntireRow属性;Delete方法
我不知道呀
发表于 2012-1-21 06:41
一、下面录制的是选择性粘贴的代码.
1、下面代码中请回答select是方法还是属性?Copy是方法还是属性 答:select、copy是方法
2、Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply 一句中有三处错误,请找出来改正。注:selection是表示正在选取的单元格对象。 答:第一处错误:“PasteSpecial , Paste”中间的应用空格隔开;第二处错误:“Paste=xlPasteAll ”中间应为:= ;第三处错误:“Paste=xlPasteAll;Operation”中间应用逗号隔开。1. Sub Macro1()2. '3. ' Macro1 Macro4. ' 宏由 Lenovo User 录制,时间: 2012-1-175. 6. Range("C21:C25").Select7. Selection.Copy8. Range("E21").Select9. Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply10.End Sub 二、下面的代码是定位空单元格并删除,该句代码中哪些是对象,哪些方法,哪些是属性?请简述下面一句代码的结构。 1. Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow.Delete 答:Range("a:a")是对象;SpecialCells(xlCellTypeBlanks)是对象; EntireRow是对象;Delete是方法
bynbyn
发表于 2012-1-21 11:40
E13学员bynbyn作业
一、1.select是方法,Copy是方法
2.不应使用逗号 Paste=xlPasteAll应写成Paste:=xlPasteAll Operation:=xlMultiply应写成Operation(xlMultiply)
二、对象:Range
方法:SpecialCellsDelete
属性:EntireRow
此代码是清空A列
linmm
发表于 2012-1-22 02:07
第4课作业答案
一、
1、select是方法,Copy是方法
2、PasteSpecial后面是空格;Paste后面是":=";XlpasteAll后面是“,”,正确应该是:
Selection.PasteSpecial Paste:=xlPasteAll,Operation:=xlMultiply
或者简写成
Selection.PasteSpecial xlPasteAll,xlMultiply
二、
1、 Range("a:a")是对象,SpecialCells是方法,xlCellTypeBlanks是SpecialCells的参数,EntireRow是属性,Delete是方法
寂寞深水鱼
发表于 2012-1-22 19:02
F18:寂寞深水鱼
一、下面录制的是选择性粘贴的代码.
1、下面代码中请回答select是方法还是属性?Copy是方法还是属性
SELECT是方法;COPY也是方法
2、Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply 一句中有三处错误,请找出来改正。注:selection是表示正在选取的单元格对象。
Selection.PasteSpecialPaste:=xlPasteAll, Operation:=xlMultiply
[*]Sub Macro1()
[*]'
[*]' Macro1 Macro
[*]' 宏由 Lenovo User 录制,时间: 2012-1-17
[*]
[*]Range("C21:C25").Select
[*]Selection.Copy
[*]Range("E21").Select
[*]Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply
[*]End Sub
复制代码
二、下面的代码是定位空单元格并删除,该句代码中哪些是对象,哪些方法,哪些是属性?请简述下面一句代码的结构。
Range("a:a")是单元格对象;SpecialCells是方法(查找)(xlCellTypeBlanks)是参数,方法的补充说明.EntireRow是属性;Delete是方法
a
[*]Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
复制代码
1982zyh
发表于 2012-1-22 22:42
1.select 和 copy都是方法
2.代码改为:Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply
3.Range("a:a"):对象
SpecialCells(xlCellTypeBlanks):方法
EntireRow:属性
Delete:方法
rabbitllu
发表于 2012-1-24 17:13
校长新年快乐,辛苦校长了:
1.select和copy分别是选中和复制,都是操作动作(对单元格动态的操作),是方法;
2.第一个错误是第一个逗号,方法和补充参数名称之间用空格分割;
第二个错误是参数赋值不能直接等号,用参数名称:=参数值
第三个错误是方法的补充说明用英文状态下逗号分割,不应该用分号分割;
修改为:Selection.PasteSpecial Paste:=xlPasteAll,Operation:=xlMultiply
3.对象:range("a:a")
Range("a:a").SpecialCells(xlCellTypeBlanks).
Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow
方法:SpecialCellsDelete
属性:EntireRow
水上漂123
发表于 2012-1-24 22:00
第一题:1、select和copy是方法
2、Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply中第一个问题是逗号应改为空格,第二个问题是paste后的等号前应加半角冒号,第三个问题是operation前的分号应改为逗号。
第二题:range("a:a")是对象,specialcells是方法,entirrow是属性,delete是方法。
xxjjdd0000
发表于 2012-1-25 09:54
一,Sub Macro1()
'
' Macro1 Macro
' 宏由 Lenovo User 录制,时间: 2012-1-17
Range("C21:C25").Select
Selection.Copy
Range("E21").Select
Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply
End Sub
答:1,Select和copy都属于方法;
2、正确答案:Selection.PasteSpecial Paste:=xlPasteAll,Operation:=xlMultiply
二,Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
对象:Range("a:a").SpecialCells(xlCellTypeBlanks)
属性:EntireRow
方法:Delete
翩翩起舞
发表于 2012-1-25 17:15
答:复制代码答:上述代码中Select和Copy都是方法。 上述错误代码错在:1. 09句中:PasteSpecial后面不该是个逗号应该是个空格; 2. 09句中:Paste后面的等号前应该有个冒号; 3. 09句中:xlPasteAll后面不应该是个分号,应该是个逗号。
复制代码上述代码中:Range("a:a")——对象 SpecialCells——方法 xlCellTypeBlanks——属性 EntireRow——属性 Delete——方法 整行代码的意思是:定位A列中的空单元格后整行删除。