作者:坚强萝卜_854 | 来源:互联网 | 2023-05-19 06:08
Iamtryingtosearchforthedate,whichIhaveincellK1astoday().我试图寻找约会,我今天在细胞K1().
I am trying to search for the date, which I have in cell K1 as =today()
....
我试图寻找约会,我今天在细胞K1 =()....
Whenever I am recording the macro, however, it will continue to use the date which the macro was written. What I am curious about is a methodology of pasting what is on the clipboard into the VBA search function.
但是,当我记录宏时,它将继续使用写入宏的日期。我好奇的是将剪贴板上的内容粘贴到VBA搜索函数中的方法。
So I want to search column A for what is in cell K1. This is what code I have now (the find what is what I just typed to help you all have an idea of what I'm looking for)
我想搜索A列,看看在细胞K1中有什么。这就是我现在的代码(查找就是我刚刚输入的代码,以帮助大家了解我在寻找什么)
Range("K1").Select
Selection.Copy
Columns("A:A").Select
Selection.Find(What:="COPY CONTENTS OF CELL K1", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
2 个解决方案