emgaingayngo
Thành viên hoạt động
- Tham gia
- 9/2/07
- Bài viết
- 141
- Được thích
- 5
Sub cNgay() Dim MyDate, MyString, c MyDate = Range("ChonNgay").Value MyString = Format(MyDate, "dd/mm/yy") With Range("ListNgay") .NumberFormat = "dd/mm/yy" c = .Find(MyString, LookIn:=xlValues).Address End With Range(c).Offset(, 1).Resize(, 28).Copy Range("A3").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=True Application.CutCopyMode = False End Sub
Sub cNgay()
Application.ScreenUdating=False
Dim MyDate, MyString, c
MyDate = Range("ChonNgay").Value
MyString = Format(MyDate, "dd/mm/yy")
With Range("ListNgay")
.NumberFormat = "dd/mm/yy"
c = .Find(MyString, LookIn:=xlValues).Address
End With
Range(c).Offset(, 1).Resize(, 28).Copy
Range("A3").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Application.CutCopyMode = False
Application.ScreenUdating=True
End Sub