อยากให้แนะนำ code ยาว ให้สั้นกระทัดรัดครับ
Posted: Tue Sep 20, 2011 8:24 am
เนื่องจากผมใช้มาโครในการเล่นข้อมูลซ้ำแทนการเขียนโค้ดเอง
อยากให้อาจารย์ช่วยแนะนำโคดที่กระทัดรัดครับผมจากตัวอย่างด้านล่าง
อยากให้อาจารย์ช่วยแนะนำโคดที่กระทัดรัดครับผมจากตัวอย่างด้านล่าง
Code: Select all
Range("W3").Select
ActiveCell.FormulaR1C1 = "=cal_1!R[4]C[-21]"Code: Select all
Rows("6:6").Select
Selection.AutoFilterCode: Select all
Range("Z2").Select
ActiveCell.FormulaR1C1 = "=SUBTOTAL(9,R7C26:R65536C26)"Code: Select all
Range("Z2:AB2").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = FalseCode: Select all
Range("W2:AB3").Select
Selection.ClearContents