Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Help with Looping Macros

Hi i am currently in the process of trying to transpose my data from one sheet to another within the same workbook.
Here's is the VBA script of the macro:
Sub Transpose()
'
' Transpose Macro
' Macro recorded 12/24/2010 by Chaitanya Rane
'

'
Range("D2:D24").Select
Selection.Copy
Sheets("Sheet1").Select
Range("B3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=True
Sheets("Sheet2").Select
Range("E2:E24").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet1").Select
Range("Z3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=True
End Sub
__________________________________________________ ______________
What i need this macro to do now is loop and keep pasting the data from sheet two except that the selection range [ Range("D2:D24").Select & Range("E2:E24").Select] has to add 23 to it so that will be [Range("D25:D47").Select&Range("E25:E47").Select] so and so forth till the last value is D&E8396 respectively.

In essence i know what i want the function to do but cant get the syntax.
Also is there any other way than using a macro.
Please help!!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping Macros that change Dar Excel Discussion (Misc queries) 1 February 25th 10 10:09 PM
Looping Maggie[_6_] Excel Discussion (Misc queries) 6 October 2nd 08 09:14 PM
Not Looping Roger Excel Discussion (Misc queries) 0 February 26th 08 05:18 PM
Looping David T Excel Discussion (Misc queries) 2 August 30th 06 10:51 PM
Looping macros using VB code accessuser1308 Excel Discussion (Misc queries) 2 March 9th 05 11:11 PM


All times are GMT +1. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"