tạo dòng xen kẽ trong excel bằng macro

Forum rules
關於電腦的常識 ,毒蟲 ,木馬 駭碼....等

thường thức vi tính ,virus ,trojan ,hijack...

tạo dòng xen kẽ trong excel bằng macro

Postby linhuytung » February 28, 2015

Sub InsertRow()
Dim i As Integer
Dim counter As Integer
counter = 500
'----------doan ma~ nay de them dong tu dong---------------------------
For i = 3 To counter Step 2
Rows(i).Select
Selection.Insert Shift:=xlDown
Next i
End Sub
這片晴天 有我愛的半晌 ,另晌填守望
User avatar
linhuytung
5星級 5cấp sao
5星級 5cấp sao
 
Posts: 121
Joined: July 10, 2009
Thanks: 9
Thanked: 22 times in 13 posts
Reputation point: 15

Return to 電腦常識 Thường thức vi tính

Who is online

Users browsing this forum: No registered users and 0 guests

cron