I'm trying to help msampson on a problem with rearranging data
http://www.mrexcel.com/board2/viewtopic.php?p=466331#466331
The macro is simple enough, and it runs without a problem on my PC ( XP & xl2003) but it turns out that she's running a Mac (A G5 dp with OS X, Excel X and 2004) and is getting compile errors and a syntax error on For i=1 to 100
I've never used Excel on a Mac so I don't know if there are any syntax diferences. Does anyone know why this might be?
Many Thanks
GaryB
http://www.mrexcel.com/board2/viewtopic.php?p=466331#466331
The macro is simple enough, and it runs without a problem on my PC ( XP & xl2003) but it turns out that she's running a Mac (A G5 dp with OS X, Excel X and 2004) and is getting compile errors and a syntax error on For i=1 to 100
Code:
Sub Macro3()
Dim i As Integer
For i = 1 To 100
j = 9 * (i - 1) + 4
Range("A" & j, "A" & j + 7).Copy
Range("C" & i).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Next i
End Sub
I've never used Excel on a Mac so I don't know if there are any syntax diferences. Does anyone know why this might be?
Many Thanks
GaryB