Range(Cell.Find(“价格标签”), Range(Cells.Find(“价格标签”)).End(xlDown))
我想找到“价格标签”在工作表上的位置,然后按照该列一直向下选择。 我写了
Range(Cells.Find("Price tag"), Range(Cells.Find("Price Tag")).End(xlDown))
但我收到了 [range method of object _global failed] 消息。 代码有什么问题,我该如何修复它?
I want to find where 'price tag' is on the sheet, and follow that column to select all way down.
I have wrote
Range(Cells.Find("Price tag"), Range(Cells.Find("Price Tag")).End(xlDown))
but I got [range method of object _global failed] message.
What is wrong with the code, and how can I fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 Find 方法
Nothing
,因此最安全的做法是在Find
方法中使用范围变量,然后测试针对Nothing
的变量。Using the Find Method
Nothing
, so it is safest to use a range variable with theFind
method, and then test the variable againstNothing
.此功能将为您扩展选择范围。
用法
This function will extend the selections for you.
Usage