![]() |
|
#1
|
||||
|
||||
![]()
Your code is removing the file extension from the name but you don't replace it with xlsx. I would set the name by
' Set the new filename NewFile = Replace(ActiveDocument.Name, ".docx", ".xlsx") NewFile = Replace(NewFile, "Final Report", "Tables") I assume your code includes looping through all story ranges but you haven't shown us that outer loop. If that is the case then it will hit all footers as well.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
Thanks for the extension suggestion. I've made the appropriate edit, however I'm still getting that error at the ".SourceFullName = Replace(.SourceFullName, OldPath, NewPath)" line. I've attached the edited code, unless posting the whole text here would be easier to read?
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Corrupted Footnotes After Modifying File on Macbook! | MusculaR_MinD | Word | 3 | 12-12-2019 06:09 PM |
![]() |
justinmo | Word VBA | 2 | 09-11-2018 06:08 PM |
Modifying RTF File in MS Word 2007 | Nickster | Word VBA | 2 | 12-02-2015 11:33 PM |
![]() |
officeboy09 | Word | 6 | 09-26-2014 05:15 PM |
![]() |
ctspwc | Outlook | 5 | 11-17-2010 09:29 PM |