使用.Find查看另一个工作表 [英] Using .Find to look in another worksheet
本文介绍了使用.Find查看另一个工作表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在一个工作簿(活动的)中具有帐户名称,我需要使用.Find函数来查找他们在另一个工作簿/工作表中的发生。我不认为我正在获得其他工作簿/表单的正确对象句柄,但是我没有尝试正在工作。
I have aset of account names in one workbook (the active one), and I need to use the .Find function to look for their ocurrences in another workbook/sheet. I don't think I'm getting the right Object handle for the other workbook/sheet, but nothing I try is working.
For Count = 1 to 10
accName = Cells(Count, 1).Value
AccRow(Count) = OBJECTHANDLE.Find(accName).Row
Next Count
任何帮助?
推荐答案
没关系,我坚持认定答案(在一天结束时这样很少见)。需要将对象定义为.Range,所以:
Never mind, I found the answer with perserverence (it's so rare at the end of the day). Needs to have the Object defined up to .Range, so:
工作簿(WORKBOOK)。表(SHEET)。 RANGE)
我讨厌VBA。
这篇关于使用.Find查看另一个工作表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文