Creating macro's
Closed
Deepu
-
Aug 30, 2010 at 08:22 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Aug 30, 2010 at 09:04 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Aug 30, 2010 at 09:04 PM
Related:
- Creating macro's
- Creating a youtube account - Guide
- Creating instagram account - Guide
- Can i change my outlook email address without creating a new account - Guide
- Creating yahoo email without phone number - Guide
- Creating snapchat account - Guide
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Aug 30, 2010 at 09:04 PM
Aug 30, 2010 at 09:04 PM
try this macro (check if necessary modify the line
j=j+30)
j=j+30)
Sub test() Dim r As Range, dest As Range, j As Integer j = 1 Worksheets("sheet2").Cells.Clear With Worksheets("sheet1") Do Set r = Range(.Range("A" & j), .Range("A" & j + 24)) 'MsgBox r.Address r.Copy With Worksheets("sheet2") Set dest = .Cells(Rows.Count, "A").End(xlUp).Offset(1, 0) dest.PasteSpecial Transpose:=True End With j = j + 30 If .Range("A" & j + 25) = "" Then Exit Do Loop End With Worksheets("sheet2").Rows("1:1").Delete End Sub