返回列表 上一主題 發帖

找到今天的的位置

回復 1# myleoyes
  1. Private Sub Workbook_Open()
  2. With Sheet1
  3. Set Rng = .Cells.Find(Date, lookat:=xlWhole)
  4. .Select
  5. If Not Rng Is Nothing Then Rng.Select Else MsgBox "找不到今天"
  6. End With
  7. End Sub
複製代碼
學海無涯_不恥下問

TOP

回復 5# myleoyes
  1. Private Sub Workbook_Open()
  2. With Sheet1
  3. Set Rng = .Cells.Find(CDbl(Date), LookIn:=xlFormulas)
  4. .Select
  5. If Not Rng Is Nothing Then Rng.Select Else MsgBox "找不到今天"
  6. End With
  7. End Sub
複製代碼
學海無涯_不恥下問

TOP

        靜思自在 : 君子立恆志,小人恆立志。
返回列表 上一主題