vumian
Mỗi bậc thang là mỗi Cell
- Tham gia
- 12/3/07
- Bài viết
- 267
- Được thích
- 186
- Nghề nghiệp
- employee only, not a boss
Cho mình hỏi, đọna code sau bị lỗi , hôg hiểu vì sao
Mình muốn lấy cái Activecell ở sheet1 , khi qua những sheet khác, thì nó tìm cái giá trị đó ở sheet2, mà nó lỗi cái cái Activecell, Bác xem giúp
Thanks,
PHP:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Set oCurrent = ActiveCell.Value
If Not IsEmpty(oCurrent) Then
Cells.Find(What:="oCurrent", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Else
MsgBox "Hong tim thay"
End If
Set oCurrent = Nothing
End Sub
Mình muốn lấy cái Activecell ở sheet1 , khi qua những sheet khác, thì nó tìm cái giá trị đó ở sheet2, mà nó lỗi cái cái Activecell, Bác xem giúp
Thanks,
File đính kèm
Lần chỉnh sửa cuối: