Hi
i dont know for iMac but excel defaults a Excel file called samples which Misrofoft kindley give the code you ask for and explain its use.. this will help iMac might be different but VBA is Made copyright by Microsoft so guess will be all OK an should work never tested i add.. but even so find the doc or scan CD Disk to find..
HTH