Share via

Application.Dialogs(xlDialogSaveAs).Show

Anonymous
2012-11-01T23:16:03+00:00

Hi all

I have a problem with Application.Dialogs(xlDialogSaveAs).Show in my macro.

After this line there is also other code in the same macro.

In Windows it wait until you use cancel or save in the dialog before it run the other code but

on a Mac it not wait. As a workaround I can use getsaveasfilename but I hope that there is a fix.

Thanks for reading

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-11-03T12:00:16+00:00

I gave up on the dialog and create a function for getsaveasfilename

I add it on my Mc page

http://www.rondebruin.nl/mac.htm#GetSaveAsFileName

Commants are very welcome

Was this answer helpful?

0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Jim G 134K Reputation points MVP Volunteer Moderator
    2012-11-03T20:49:23+00:00

    I use applescript to display certain dialogs

    Let MyDir = MacScript("Choose Folder")

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-11-02T21:38:24+00:00

    Hi Bob

    I know that I can use getsaveasfilename, see text in my posting

    >As a workaround I can use getsaveasfilename but I hope that there is a fix.

    But they are not the same, and the point is that there is a lot of code using it that will not work on a Mac now so it is good to see if there is a way to use it.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2012-11-02T19:06:07+00:00

    I already answerd you on the MVP forum. Use application.getsaveasfilename instead.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2012-11-02T17:48:34+00:00

    Update: it seems to work when you run the code in the VBA editor on a Mac

    But not when you run it from a Button/Menu or with Alt-F8

    Was this answer helpful?

    0 comments No comments