View Single Post
 
Old 02-08-2019, 03:49 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Kalü View Post
This is giving me some error-messages, but I have noticed that you changed the backslash in
{SKIPIF{MERGEFIELD Anz}= "0"}{QUOTE{INCLUDETEXT "{FILENAME \p}\..\sb{MERGEFIELD Anz}.docx"}}
to a double normal slash "//..//sb" and after I changed that in the word doc, the old excel code is running perfectly
You will also note I deleted the {SKIPIF{MERGEFIELD Anz}= "0"} - because it's redundant.
Quote:
Originally Posted by Kalü View Post
The only problem remaining is that Excel replaces "." with "_" can I somehow stop that?
As I said, you should not have periods in filenames - which is precisely why they get changed by this:
"""*./\:?|"

I don't have time to work out what your batch file is supposed to do. In any event, whatever that is could be done far more efficiently by the macro for the files it generates.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote