【Excel VBA】Loop

With和End with語句 俗點講with的作用就是簡化代碼,讓代碼簡潔易懂 讓你不需要輸入重複的內容 例如: With [A1] .RowHeight = 10 .ColumnWidth = 15 End With 相當於 [A1].RowHeight = 10 [A1].ColumnWidth = 15 省去了輸入很多[A1] 也就是說with中以 . 開頭的就相當於 WITH後的對象 .
相關文章
相關標籤/搜索