SHARE
TWEET

Untitled

a guest Jan 21st, 2020 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub CommandButton1_Click()
  2.  
  3. lastRow = Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
  4.  
  5. For i = 1 To lastRow Step 94
  6.     Worksheets("Sheet1").Rows(i).Copy
  7.    
  8.     Worksheets("Sheet2").Activate
  9.     lastRowSheet2 = Worksheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row
  10.    
  11.     Worksheets("Sheet2").Range("A" & lastRowSheet2 + 1).Select
  12.    
  13.     ActiveSheet.Paste
  14.    
  15.     Worksheets("Sheet1").Activate
  16.    
  17.    
  18. Next i
  19. End Sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top