Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by Plagon for How to copy dynamic range in Excel Sheet using vba

Try this:

Sub Test() Dim lRow as Long Dim sht as WorksheetSet sht = x.Sheets("SheetName")lRow = sht.Cells(sht.Rows.Count, 2).End(xlUp).Rowsht.Range("A2:K"& lRow).CopyEnd Sub

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>