WebbSub AddAmounts() Dim AA As Range Dim Total As Integer Set AA = Cells(1, 3).CurrentRegion Total = WorksheetFunction.Sum(AA) Debug.Print Total AA.Offset(, -1) … Webb12 maj 2024 · Cells(2, 2).CurrentRegion これで、B2~D7のセル範囲になりますので、 Offsetで、1行下にずらしています。 でも1行多いですね。 データをクリアするだけな …
VBA之CurrentRegion属性 - 小淋 - 博客园
Webb1 apr. 2010 · Range ("A8").End (xlToRight).Offset (1,0) Edit: Hmm, on the cheeky side you might also find this convenient: Range ("I9") Edit 2: Hmm, or if you really must use … Webb27 jan. 2010 · Do the resize before the offset, that way you won't offset a large region so that it exceeds the worksheet size (assuming that the rest of your logic is correct): … jerod judy
excel - Offset and resize with vba - Stack Overflow
WebbOption Explicit Type CERTIFICADOS Tomador As String Matricula As String Marca As String Fecha_Inicio As Date End Type Sub Certificado_principal() Dim Ws As Worksheet Dim … Webb6 apr. 2024 · Gibt ein Range-Objekt zurück, das den aktuellen Bereich darstellt. Bei dem aktuellen Bereich handelt es sich um einen Bereich, der aus einer beliebigen … Webb29 nov. 2024 · 表全体のセル範囲を取得するには、『CurrentRegion』がかなり便利です。. 表全体のセル範囲を取得できれば、1行目だけとか、最終列だけとかを取得することが … lamb australia ads