Finding the number of non-blank columns in an Excel sheet using VBA

前端 未结 5 1476
一向
一向 2020-12-05 00:24

How do I find the number of used columns in an Excel sheet using VBA?

Dim lastRow As Long
lastRow = Sheet1.Range(\"A\" & Rows.Count).End(xlUp).Row
MsgBox         


        
5条回答
提交回复
热议问题