Hi JBeaucaire, now I understood what you meant about making use in the code o the directory variable. Everywhere in the net I see the path concatenated with the file name, the same you have suggested to me, as it follows
but on Mac that path come out within the file name ignoring it as a location of tthe saved new file. It may be a Mac problem, and I don't who to ask to. There is any apple script to do the same? I have also excel 2008 for Mac, which I should use instead of using the previous version beacuse of a vba makro. Thank you again. Marzia
Follows original post, hope I made it right this time. cheers
Hi there, please help me! I have such a headache! I know nothing about VBA and I need to work out a makro which I copied somewhere else. All I need to do is described in different ways in this forum but anyone of these codes I found seem to be suitable for me. My need is saving a xls file with a name from a cell and in a specific location in my computer. I'm using Mac and Excel 2004. The following code creates the file with the name I want and this is ok, but then, what it's happening is that the path where the file need to be saved is completely ignored! the file is saved in the first window that is open on the desktop. I don't even know if the path i put (//localhost...) is correct since everywhere I found examples on pc (C:\) and this is not helping me at all. Hope to receive some help. Thank you very much! Marzia
my code:
Bookmarks