I have recorded a macro that will copy a cell block 2 columns X 9 rows (for example, A1:b9) then paste special transpose into cell d1. The problem is that it always goes to A1 and I would like to make it relative so that it starts at the selected cell. I have about 500 of these blocks I need to transpose and each 2X9 block has two rows between it and the next block. So… I have A1:b9, A12:B20, A23:B31, A34:B42, etc. The code for the macro is as follows and I would like to know how to make it relative. Also, is there any way to make this automatic so it will do this repeatedly until there are no more blocks with data?
Sub Transpose()
‘
‘ Transpose Macro
‘ Macro recorded 9/18/2003 by Don Sadler
‘
‘ Keyboard Shortcut: Ctrl+Shift+T
‘
Range(“A2685:B2693”).Select
Selection.Copy
Range(“D2685”).Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Application.CutCopyMode = False
End Sub