OK了,感謝您
只是看不懂最後一行程式,是如何產生結果的?
我試寫比較淺的語法如下:
Columns(1).Insert
For i = 1 To Sheets.Count
Cells(i, 1).Value = Sheets(i).Name
If Sheets(i).Visible = False Then Cells(i, 2).Value = "Hidden"
Next i作者: GBKEE 時間: 2013-3-13 12:35
回復 7#symis
M = Split(M, ",")
Sheets(1).[A1].Resize(, UBound(M) + 1) = M '橫向排列
VBA的說明中查看可了解.