Excel 2011 MacIntosh questions

ezflyer

New Member
Joined
Oct 5, 2008
Messages
10
I am trying to create a macro that will save a worksheet as a .csv. I based the macro on a suggestion from the thread 320531 and it works for Windows. However, when I try it with Excel 2011 for Mac I get a 1004 error for the GetSaveAsFilename method. The problem appears to be the FileFilter option for file types. The FileFilter for .csv for Windows is "CSV File (*.csv), *.csv" but apparently not for Mac. I have searched for the corresponding Mac information and but I havne't been able to find it.

Can anyone give me the FileFilter or direct me to somewhere I can find it?

Thanks

Bill
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi Andrew:

Thanks for the reply. You're right, TEXT doesn't work on Macs but your link got me thinking and I came up with a slightly ugly, but effective solution.

I used a GetSaveAsFilename with no FileFilter, then stripped the suffix from the file name, and added my own csv suffix. This is working in both Windows Mac.

I'll save elegant for version 2.

Bill
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

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