开心rabbit
发表于 2012-1-18 11:21
1. 答:Select是方法,Copy是方法。
2. 答:Selection.PasteSpecial Paste:=xlPasteAll,Operation:=xlMultiply
3. 答:Range("a:a").SpecialCells(xlCellTypeBlanks)是对象,EntireRow是属性,Delete是方法;将a列中含有的空单元格的行删除,对象.属性.方法。
生存方式
发表于 2012-1-18 11:28
首次参加不知道是否正确
1、1)Select和Copy都是方法。
2)election.PasteSpecial , 后的逗号改成空格
Paste=xlPasteAll赋值语句等号前加冒号
Paste=xlPasteAll;Operation:=xlMultiply中的应用逗号分开而不是分号。
2、Range("a:a")为对象,SpecialCells和delete为方法,EntireRow为属性。
Range("a:a").SpecialCells(xlCellTypeBlanks)为对象;
Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow为对象。
代码表述:A列中所有与xlCellTypeBlanks匹配的单元格所包含行的内容删除。
mfksypss
发表于 2012-1-18 11:40
'本课作业考查大家对“对象方法和属性”三个概念的理解和掌握:
'一下面录制的是选择性粘贴的代码.
'1下面代码中请回答select是方法还是属性Copy是方法还是属性
'Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply 一句中有三处错误,请找出来改正注:selection是表示正在选取的单元格对象
Sub Macro1()
'
' Macro1 Macro
' 宏由 Lenovo User 录制,时间: 2012-1-17
Range("C21:C25").Select 'select是方法
Selection.Copy 'copy是方法
Range("E21").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply
'pastespecial是方法,后面应该是空格,不应该是逗号;paste与后面的xlpasteall间应是“:=”;paste:=xlpasteall与后面之间用逗号。
End Sub
'二下面的代码是定位空单元格并删除,该句代码中哪些是对象,哪些方法,哪些是属性请简述下面一句代码的结构
Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
'range("a:a")是对象
'specialcells是range的方法:特殊单元格定位
'xlcelltypeblanks是specialcells方法的参数,因为该方法要返回range对象,所以要用括号
'entirerow是specialcells方法返回的单元格对象的属性:所在行。该属性返回range对象
'delete是前面所指的单元格的方法:删除
wuhairong2011
发表于 2012-1-18 11:41
select是方法 , Copy是方法
正确应该是这样
Sub Macro1()
'
' Macro1 Macro
' 宏由 Lenovo User 录制,时间: 2012-1-17
Range("C21:C25").Select
Selection.Copy
Range("E21").Select
Selection.PasteSpecial xlPasteAll, Operation:=xlMultiply
End Sub
第一参数名称可以省略,直接输入数据类型,中间用空格分开,参数与参数之间用","逗号分开
从从容容
发表于 2012-1-18 11:42
D03从从容容
1、(1)select, Copy都是方法
(2)Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply
正确:Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply
2、[对象]Range("a:a").[方法]SpecialCells([参数]xlCellTypeBlanks).[属性]EntireRow.[方法]Delete
汉娜
发表于 2012-1-18 11:45
B12:汉娜
一、
1、select和copy都是方法
2、PasteSpecial 后面逗号改成空格;Paste后面应该是:=; xlPasteAll后面;改成逗号
二、
对象:Range("a:a") 方法:SpecialCells(xlCellTypeBlanks),Delete 属性:EntireRow
选择A列单元格中的空单元格,返回单元格对象,属性是指定行的全部,方法是删除
tcn541
发表于 2012-1-18 12:00
1 copy方法
2 PasteSpecial和Paste之间去掉","仅留一个空格,Paste和=之间加":",xlPasteAll和Operation之间的";"改成","
Selection.PasteSpecial Paste:=xlPasteAll,Operation:=xlMultiply
3 Range("a:a")是对象 SpecialCells(xlCellTypeBlanks)和EntireRow分别一级属性和二级属性;
在整体中Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow是对象,delete是方法
zac0226
发表于 2012-1-18 12:11
一、下面录制的是选择性粘贴的代码.
1、下面代码中请回答select是方法还是属性?Copy是方法还是属性
Select、Copy都是方法 2、Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply 一句中有三处错误,请找出来改正。注:selection是表示正在选取的单元格对象。
Selection.PasteSpecial , Paste=xlPasteAll;Operation:=xlMultiply
1PasteSpecial , Paste之间应该是空格2 Paste=xlPasteAll中paste后少了: 3 Paste=xlPasteAll;Operation中;改为,二、下面的代码是定位空单元格并删除,该句代码中哪些是对象,哪些方法,哪些是属性?请简述下面一句代码的结构。
Range("a:a").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
对象 :Range("a:a") 方法:SpecialCellsDelete 属性:EntireRow
亦铭
发表于 2012-1-18 12:23
一、1、都是方法
2、改为Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply
二、Range("a:a")是对象,SpecialCells(xlCellTypeBlanks)是方法,EntireRow是属性,Delete是方法。
qzc804030
发表于 2012-1-18 12:47
一题:
1答:"select"是方法,"Copy"是方法
2答:修改后为Selection.PasteSpecial Paste:=xlPasteAll,Operation:=xlMultiply
一处"pastespecial"与"paste"不能用逗号",",要用空格" ",二处"paste"与"="之间要加":",三处"xlPasteAll"与"Operation"之间要用逗号",".
二题
答:"Range("a:a")是对象,"SpecialCells(xlCellTypeBlanks)"是属性其中"(xlCellTypeBlanks)"对前面的补充,"EntireRow"是属性,"Delete"是方法.