VBA only works on Windows, of course, not on a Mac. You are working in
- Windows 7 Prof, 64-bit
- Word 2007
- InDesign CS5, version 7.0.4
... place/import it and somehow make sure that InDesign uses the styles I already defined in InDesign, not the way that style is defined in Word. I can't figure out how to do this.
When you're placing a word document, turn on the "Show Import Options" check box, or hold "Shift" and click "Open". Then in the "Microsoft word options" dialog box choose "Use InDesign style definition" for paragraph and character styles conflicts.
Thank you Kasyan, but it doesn't work as I expected it to. The InDesign style are somtimes overridden, sometimes not. It seems to have something to do with wether the Word-style is based on another Word-style or not. In addition I have my InDesign styles grouped, and when InDesign upon placing a text doesn't find the style on the top level, it imports the Word-style.
- Change Word-styles so they are not based upon another style
- Running the VBA-code in Word
- Placing the text using "Use InDesign style definition" for paragraph and character styles conflicts.
- Editing the imported InDesign styles so that they are based upon and equals the original InDesign style in the respective group