yome
GPE thật tuyệt vời
- Tham gia
- 9/5/08
- Bài viết
- 347
- Được thích
- 113
Đây là đoạn code em ghi được:
Em sửa thành:
Nhưng em lại sửa thế này:
Anh/chị sửa dùm em nhé!
PHP:
ActiveCell.FormulaR1C1 = "=CDPS!R[34]C[3]"
Range("B2").Select
ActiveCell.FormulaR1C1 = "=CDPS!R[30]C[3]"
Range("B3").Select
ActiveCell.FormulaR1C1 = "=R[-2]C-R[-1]C"
Range("B4").Select
Em sửa thành:
PHP:
Range("B1").Value = "=CDPS!R[34]C[3]" ------> the nay thi duoc roi.
Range("B2").Value = "=CDPS!R[30]C[3]" ------> the nay thi duoc roi.
Range("B3").Value = "=R[-2]C-R[-1]C" ------> the nay thi duoc roi.
Nhưng em lại sửa thế này:
PHP:
Range("B1").Value = "=CDPS!C34" '----> sao em sua the nay roi ma van duoc duoc?
Range("B2").Value = "=CDPS!C30" '----> sao em sua the nay roi ma van duoc duoc?
Range("B3").Value = "=B1 - B2" '----> sao em sua the nay roi ma van duoc duoc?
Anh/chị sửa dùm em nhé!