記得給最佳解答喔
VBA其實不會更快,很有可能更慢,頂多平手。
類似https://ithelp.ithome.com.tw/questions/10194111
應該是arr只有一個維度,所以Ubound()函數出錯才沒過。
問之前先Google
typo Worsheets -> Worksheets
把 .Borders(xlEdgeBottom).LineStyle = xlDouble 改成...
記得選我為最佳