sheet.get_range(cell1,cell2)的问题

a569673493 2009-12-14 09:01:24
sheet.getrange(cell1,cell2)当cell1和cell2相同的时候,给他赋值也就是sheet.get_range(cell1,cell1).Value2=str_name,这个是什么意思啊?range.value2是表示range中的第二个单元格吗?
...全文
427 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shangxinwangzai 2012-08-07
  • 打赏
  • 举报
回复
get_range获取了第几列到第几列 但是它没有说获取哪一行的吧?我要向遍历所有行 用什么函数呢?
wuyi8808 2009-12-14
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.range.value2(office.11).aspx

Excel Primary Interop Assembly Reference
Range.Value2 Property
Returns or sets the cell value.

Remarks
The only difference between this property and the Value property is that the Value2 property doesn’t use the Currency and Date data types. You can return values formatted with these data types as floating-point numbers by using the Double data type.


silentwins 2009-12-14
  • 打赏
  • 举报
回复
当cell1和cell2相同的时候,就是只操作一个格子!

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧