Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2020, 10:17 PM
NoSparks NoSparks is offline Copy Paste Special Loop to End of Col A Windows 7 64bit Copy Paste Special Loop to End of Col A Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

here's my interpretation of the description given in post #4


Code:
Sub CopyPasteTRANSPOSE_v3()
    Dim LastRow As Long, i As Long, ws As Worksheet
    
    Set ws = Sheets("Sheet1")
    With ws
        LastRow = .Range("A" & Rows.Count).End(xlUp).Row
        ' THE LOOP
        For i = 1 To LastRow Step 8
            .Range("A" & i).Resize(6).Copy
            .Range("B" & i).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
                False, Transpose:=True
        Next i
        ' REMOVE ROWS
        .Range("B1:B" & LastRow).SpecialCells(xlBlanks).EntireRow.Delete
        ' POSITION THE CURSOR
        Application.Goto .Range("A1")
    End With
End Sub
Reply With Quote
Reply

Tags
copy paste special loop



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Paste Special Loop to End of Col A Loop through files and Copy Table Row and Paste into Different Document spiderman1369 Word VBA 2 10-15-2014 08:30 AM
Copy Paste Special Loop to End of Col A Paste Special: Copy and Paste Formatting Only? tinfanide Word 6 03-06-2013 12:21 AM
Copy Paste Special Loop to End of Col A DOCVARIABLE copy paste special cyndor Word 2 04-06-2012 03:57 AM
Copy Paste Special Loop to End of Col A special copy/paste iconofsin Excel 1 09-15-2010 12:10 AM
Copy Paste Special Loop to End of Col A Copy and paste special Dace Excel 2 02-16-2009 12:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft