![]() |
|
#1
|
|||
|
|||
![]()
Hello,
I'm knew to this forum, so forgive me if this query has been asked. I'm trying to create a macro in Word (using a Mac) to save a document in multiple locations at the same time. Or whenever I save my latest work, it would save simultaneously in two different folders for example. Thank you! Imac 2012 OS 10.9.5 Office 2011 Word 14.6.4 |
#2
|
|||
|
|||
![]()
Hi!
Here is a code I use from Graham Mayor : Code:
Sub Save2Places() 'Written by Graham Mayor Dim strFileA, strFileB, strFileC, strFileD ActiveDocument.Save strFileA = ActiveDocument.Name 'Write down your directory here: strFileB = "c:\temp\" & strFileA strFileC = "c:\mydocs\" & strFileA strFileD = ActiveDocument.FullName ActiveDocument.SaveAs FileName:=strFileB ActiveDocument.SaveAs FileName:=strFileC ActiveDocument.SaveAs FileName:=strFileD End Sub |
#3
|
|||
|
|||
![]()
Thank you Souriane!
forgive me for asking, but how do i find the path for my destination in my Mac and and after I've found them, how do i code them in the macro. Thank you! |
#4
|
||||
|
||||
![]()
I doubt that code would work on a Mac - filepaths in that environment are expressed quite differently from a PC (which is what the posted code is for). See: https://community.spiceworks.com/top...cel-vba-script
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Thanks for your quick response!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving to two Locations Simultaneously | WilltheGrill09 | Word | 5 | 03-15-2024 03:15 PM |
Mail Merge to multiple employees in multiple locations as PDF by location | GFiz | Mail Merge | 1 | 05-13-2017 08:01 PM |
![]() |
laura@knott | Word VBA | 2 | 10-18-2013 08:11 AM |
Can't set document locations in Word 2003 | puedeba2004 | Word | 0 | 07-31-2013 05:02 PM |
![]() |
Blacker | Outlook | 3 | 09-19-2011 01:05 PM |