Problems with Excel X on a Mac

GaryB

Active Member
Joined
Feb 25, 2002
Messages
459
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

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
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I tried it at home on my Mac running Excel 98 and I still got the same error??????
 
Upvote 0
I just tried running this code on my Mac using Excel X and I get the same error message.

I'm not very familiar with macros, but I understand that there's a compatibility issue between Mac and Windows based computers.

If I'm not mistaken, Mac's are still stuck using Version 5 of VBA, whereas Windows based computers are using Version 6.
 
Upvote 0
Whew, I'm glad it's not just me being really dense about this then.

Any ideas anyone?
Thanks, Maureen
 
Upvote 0

Forum statistics

Threads
1,226,240
Messages
6,189,820
Members
453,571
Latest member
Zale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top