![]() |
|
#1
|
||||
|
||||
![]()
You can test whether Word considers the document had a change made before deciding whether to save.
Try changing this code Code:
With wdDoc Call Foot2Inline(wdDoc) .Close SaveChanges:=True End With Code:
With wdDoc Call Foot2Inline(wdDoc) If .Saved then .Close SaveChanges:=False Else .Close SaveChanges:=True End If End With
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
scvjudy | Word | 2 | 08-11-2014 10:58 PM |
![]() |
jemmac2525 | Word | 2 | 11-11-2013 12:32 AM |
Office 2010 Can't Open Or Save Documents in My Documents Folder | trippb | Office | 1 | 07-12-2013 07:29 AM |
![]() |
stevecarr | Word | 1 | 09-22-2011 05:32 AM |
Loop through folder of workbooks and copy range to other workbook | Snvlsfoal | Excel Programming | 3 | 07-29-2011 05:55 AM |