[算表] [发问] 请教此程式如何更改??

楼主: ckingsu (ckingsu)   2019-05-27 12:22:36
软件:excel
版本: 2003
ub bac()
Sheets("sheet1").Select
With Sheets("sheet1")
Dim aa, k,ss
Set aa = Sheets("sheet1").Range("n2:n1048").Find(What:="*",
SearchOrder:=xlByRows, LookIn:=xlValues, SearchDirection:=xlPrevious,
LookAt:=xlWhole)
For k = 1 To aa.Row
ss = Application.Large(Range("n2:n1048"), k)
'==> 传回 ss的右边1格的值跟位址 ===>这里要如何改??
next
end with
end sub
作者: soyoso (我是耀宗)   2019-05-27 12:36:00
于n栏范围内range.find搜寻变量ss,右侧1栏的值,以range.offset,位址方面看是要以已知栏字串"o"来连接&range.row列号或是range.address或是要以工作表函数vlookup来回传o栏的值,工作表函数match来取得列号

Links booklink

Contact Us: admin [ a t ] ucptt.com