Word Macros InDesign

I followed all of the steps for using Word to write my scripts for InDesign.  It is a simple macro to go to the start of the line and delete 5 characters.
Sub DeleteFive()
' DeleteFive Macro
    Selection.HomeKey Unit:=wdLine
    Selection.Delete Unit:=wdCharacter, Count:=1
    Selection.Delete Unit:=wdCharacter, Count:=1
    Selection.Delete Unit:=wdCharacter, Count:=1
    Selection.Delete Unit:=wdCharacter, Count:=1
    Selection.Delete Unit:=wdCharacter, Count:=1
End Sub
It crashes when it tries to run the HomeKey line.
Copied it to the folder in InDesign and added the .vbs file extension.
I have a huge ID file I need to reformat and scripts would be a life and finger saver!
Thanks!
Rick
InDesign CC
Windows 7
32 GB Ram

Been banging this around a bit and think I found a decent solution.
The scenario is that we have Word files that have the same style name as our InDesign file, but we were getting overrides coming in from Word even though the styles in the two programs were nearly identical. We are currently still in CS3 with this particular series but CS5 had similar issues. I think at least part of the problem are the so called "default" tabs in the Word doc.
In InDesign, instead of telling the Word import filter to use the InDesign styles we told it to automatically rename. This puts "_wrd_#" at the end of the incoming style name where the "#" increments as a number. If you then delete those incoming styles and equate them to the corresponding InDesign style it works fantabulously. It keeps the overrides that were done in Word without any extra overrides on the other paragraphs.
Hoping this might help someone else.
All the Best,
Ken

Similar Messages

  • Working with Word Templates and signed Word macros storing documents in SAP

    HI,
    we are storing word documents in the SAP BDS. The documents contain macros. The security settings for word macros cannot be reduced in our environment.
    So the documents / macros were signed. They work well. but as soon as they have been stored in the SAP BDS, we get the error message "You have modified a signed project.You do not have the correct key to sign this project. The signature will be discarded"
    After that the word macros do not run.
    Does anybody know this problem and the solution?
    Regards
    Harald

    And this is related to workflow in what way?
    Regards,
    Martin

  • Clicking from Word to InDesign not working

    I am trying to copy and paste from MS Word 2011 into the lastest CC InDesign 2014 (10.1.0.71) (on a Mavericks 10.9.4) and it is not working to simply click from Word into InDesign. I must use the toggle shortcut  (Command + Tab) to activate the workspace in InDesign, then click my targeted text box.
    This is an extra step in my workflow and has never been a problem in previous versions or any other software for that matter. Clicking a window should make that application active.
    Please HELP! Fix!
    Thanks!
    K

    Just realizing this is an issue across displays. Any software that I have on monitor B will not allow me to click into InDesign on Monitor A to activate the InDesign application. I must toggle, or click another application's window then click InDesign, to make it active.

  • Pasting Text from Word to InDesign (need preserve selected formatting)

    When I import text from Word to Indesign I want to preserve the Italic and semi-bold but nothing else.
    The Indesign document has a template set up with ipsum text styled with semi-bold and normal text as well as a character style for the italic.
    When I paste the text into InDesign I want the ital and semi-bold to translate into the already styled text frame with no other formatting from Word.
    As there will be hundreds of text frames like this I want the ital etc to automatically translate. I also need to paste text over these templated text frames (see attached.
    Cheers,

    Use File > Place and check the import options instead of Copy/Paste.

  • Importing Word into InDesign, problem with styles

    OS 10.6, CS5
    Hi everyone,
    Does anyone have any experience with importing styled Word docs into InDesign?
    Editors style their Word documents with some basic styles (Text, References, Headline, etc.) using a Word template that I created. Designers use import options to match the Word styles to the ID styles. This worked fine in Word 2004 and InDesign CS3: Word  "text" style would map on import to the InDesign "text" style, even though they had totally different attributes. Superscripts, italics, etc. would be respected as local overrides in InDesign.
    Then we upgraded to CS5. Automatic mapping on import no longer seems to work: After importing text, all the styles in InDesign have local overrides assigned to them that don't make sense (hyphenation exceptions, tab settings). So I'm left with importing the Word styles, using auto-renaming so that InDesign explicitly does NOT match styles.
    Then delete the Word styles one by one from the paragraph style panel, replacing with the desired ID style.
    This has gone on for several months and we've now upgraded to Office 2011 but that hasn't solved the problem.
    With Word 2011 docx files, the import works almost like it did in CS3, the styles almost come in cleanly: If the style in Word has NO local overrides, such as italics or superscripts, the InDesign style is correctly applied. The problem is those local overrides in Word--InDesign not only respects the italic or superscript, it also respects the font attribute. All the Word styles are Times New Roman so all superscripts in InDesign are coming in as superscript + TNR. (see screenshot)
    Are we left with our original work-around? Importing styles then manually deleting and replacing them?
    This is frustrating because it used to be smooth and seamless and while some new features of CS5 are great, it's annoying that it's broken this fundamental function!
    I've tried saving the Word files as doc or rtf instead of docx but this doesn't make a difference in this problem.
    Any help or advice would be much appreciated.

    I'm an author / publisher.  I write in Word and I publish with InDesign. When I'm in the review stages, I like to edit my text in Word, so I export the text as an RTF.  When I import it back into InDeisgn I often find that some of the styles have annoying overrides from Word that break things.  (1) Paragraph style stuff about hyphenation and (2)  Characters style stuff about  Character direction: Left-to-Right style.
    * Easy global  fix:  select the whole text open the Window | Style | Paragraph window, and click the button on the bottom to remove all overrides. And do the same for the Window | Style | Character window. Before doing this, I like to check that I don’t have any italics that are in the file as overrides rather than being in there as part of a header style or as part of the Emphasis style that I try to use throughout the text instead of just an italic override. It makes me uneasy to remove all overrides, as I always worry there might be an important one I could have kept.
    * (1) Specific fix for the hyphenation overrides: Make sure the hyphenation settings in the individual InDesign paragraph styles match, so far as possible, the Word global hyphenation settings in the Page Layout | Hyphenation dialog of Word.    InDesign will import any Word hyphenation settings that don’t match the InDesign doc styles as overrides.
    Specifically,  set InDesign Hyphen Limit to ( say) 1 and set Word | Hyphenation | Hyphenation Options | Limit consecutive hyphens to the same number (say) 1. Also set InDesign Paragraph Style Hyphenation | Hyphenation Zone to (say) 0.5” and set Word | Hyphenation | Hyphenation Options | Hyphenation Zone to the same number (say) 0.5”.  And turn off all the InDesign optional hyphenation check boxes at the bottom of the dialog, and the turn off the two check boxes in the Word Hyphenation Options box as well.In Word you should also set Hyphenation | Automatic.  If you cautiously set Word Hyphenation | None the import will throw a “Hyphenation” override on the hyphenated paragraph styles, even though this maikes no sense.
    You may still pick up some hyphenation related overrides on your heder styles, if you have set the headers not to hyphenate.  You can either dump the overrides in InDesign or you can set your header styles to hyphenate…and be careful not have any headers actually be longer than one line.
    (2) I still haven't found the fix for the Left-to-Right text override.

  • MS-Word Macros with paramers via OLE

    Hi,
    This is probably more of an MS-Word question than a Forte question,
    but somebody out there might have done this before...
    I have some MS Word macros (Originally WordBasic, but recently they
    underwent automatic conversion to become Visual Basic) which take
    parameters.
    I used to call these macros from Forte using DDE.
    These days, it's a lot more fashionable to use OLE automation than
    DDE so I thought I'd give that a go.
    But I can't.
    Word.Applicaiton has a Run() method to run macros, but not macros
    with parameters. Is there a neat way of getting macro parameters
    across to Word?
    - Ed.
    Eduard E Havelaar | For the foolishness of God is wiser
    Information Services Section | than man's wisdom, and the weakness
    University of Canterbury | of God stronger than man's strength
    Christchurch, New Zealand | - I Cor 1:25

    have a look at this here article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Word macro from Forms

    How can I start a macro in Word from Forms with the DDE-package? For Excel I use this command ('update' is the macro-name):
    DDE.Execute(ConvID, [run "'test.xls!update"]', 10000);
    Does anybody know the right approach for a Word macro?
    Thanks.
    null

    You should use OLE2 instead of DDE.
    Use this procedure if you're using Word version >= 97:
    PROCEDURE RUN_MACRO(cMacroName VARCHAR2) IS
    objWordApp OLE2.OBJ_TYPE := OLE2.CREATE_OBJ('WORD.APPLICATION');
    objArgList OLE2.LIST_TYPE := OLE2.CREATE_ARGLIST;
    BEGIN
    OLE2.ADD_ARG(objArgList,cMacroName);
    OLE2.INVOKE(objWordApp,'Run',objArgList);
    OLE2.DESTROY_ARGLIST(objArgList);
    OLE2.INVOKE(objWordApp,'QUIT');
    OLE2.RELEASE_OBJ(objWordApp);
    END;
    you can contact me for further explanation.
    Carlos

  • Word to indesign using xslt

    Hi All,
    I have copyedited word document and it was styled.
    Eg:
    Word Styles Name
    "Chapter Title", "Chapter Sub Title", "Para", "Table Caption", "Box", " Para Indent" etc...
    InDesign Paragraph Styles:
    "CT", "CS", "Body", "TC", "BX", "Body Ind" etc...
    How do i create a XSLT using word and indesign style Mapping.
    Please suggest me.
    Hurix

    Some more detail would help. I'm guessing you need to do this beacuse you are using some sort of XML workflow? If you are  not, then you can simply show the import options when placing a word file and map the styles there.

  • Telugu - Use font in Word and InDesign

    For work purposes, I have to create a bilingual brochure (English - Telugu) but I'm having huge problems with finding a font that works... It needs to be usable in both Word and InDesign and also able to combine Telugu with English. Normally we use Frutiger and Meta, so any font that suits these styles would be great. Hopefully you can help me out, your help would be greatly appreciated! Thanks for reading my question!

    If you're using CS4 with the hidden "World-Ready Composer" functionality (read this article), you might be able to get Telugu to render correctly. Otherwise, you're probably out of luck. Telugu requires support for rendering methods that aren't in any other version of InDesign, so I doubt that your probem is really to be found in the fonts, as you suspect.
    In languages that InDesign doesn't support, I sometimes have success back-converting to ancient pre-Unicode fonts, but I've never done so with Telugu, so I can't say for sure that such a solution would work for you.

  • Guiones cortos al exportar Word a Indesign CS4

    Cuando importo un archivo Word a Indesign, me elimina todos los guiones cortos. ¿Hay alguna manera de solucionar este problema? Gracias.

    Prueba a importar ficheros en formato rtf en vez de formato word, diremos
    que importa mejor rtf que word. Decirte que estoy harto de importar
    ficheros word y nunca me ha pasado, no sé si será por la fuente que usas en
    cuestión, pues de verdad que después de 8 años trabajando con él no me ha
    pasado nunca, pero bueno, siempre hay una primera vez.
    un saludo
    mateo
    2013/3/12 Antoni P. <[email protected]>
       Guiones cortos al exportar Word a Indesign CS4  created by Antoni P.<http://forums.adobe.com/people/Antoni+P.>in
    Foros de usuario a usuario - View the full discussion<http://forums.adobe.com/message/5141230#5141230

  • Matching styles between Word and InDesign?

    In Microsoft Word, can you create new style names (both character AND paragraph) same as you can in InDesign? and if those names match those in an InDesign template you are flowing them into, will the text come in STYLED like they are set up in InDesign?

    Anne-Marie Concepcion has produced a comprehensive tutorial on using Word and InDesign together. I would highly recommend anyone using these two applications to have a look at it:
    http://www.lynda.com/InDesign-tutorials/Using-Word-InDesign-Together/122930-2.html?srchtrk =index:1%0Alinktypeid:2%0Aq:indesign%0Apage:1%0As:relevance%0Asa:true%0Aproducttypeid:2
    (I haven't any connection with Lynda.com)
    Derek

  • Making and running excel or word macros

    i would like to make a excel or word macro and run it in labview, but
    i don´t want to run without view the code directly in labview because
    i will need to modify the code in order to do differents things
    depending of the choose that i can make when the program it´s running
    so the answer is: how can i see the macro code in labview in and excel
    or word application and how to run it?
    don´t answer the solution it´s easymacro.com, couse i am a student and
    i need to see the diagram in order to learn
    thanks!

    I think ActiveX is what you need, but you'll have to elaborate a bit to modify and run macros. Look at the examples shipped with LabVIEW about controlling Excel, and see how those work. After that, you'll see that almost anything can be done using ActiveX.
    Good luck

  • How to copy Chinese text from MS Word to Indesign CS5.5

    Hello, I am a beginner and wanted to simply copy Chinese characters from MS WOrd to indesign CS 5.5. But it showed up in indesign as a bunch of squares. ANyone knows how to do it right? Thanks

    Joel Cherney wrote:
    If you cannot find any of these, the InDesign installation disk comes with a bunch of free high quality fonts, courtesy of Adobe.
    Use those.
    The chances are quite small that you will offend your Chinese readership by setting text in an overtly Japanese font like Mincho or Kozuka - but the chance is a non-zero chance. All the right glyphs are there, of course (thank you Unihan), but typographic standards differ between the two languages, and there's no sense in taking the risk.
    Ah -- apologies! Wait, let me check my ID ... I got
    * Apple LiGothic, Apple LiSung (installed by default on OS X)
    * BiauKai (umm, don't know)
    * Adobe Fan Heiti
    * STHeiti
    * LiHei Pro
    * LiSong Pro
    * Adobe Ming Std
    * Adobe Fangsong Std
    * GB18030Bitmap (exactly what it says: a bitmap font, and you can use it in InDesign! A bad idea...)
    * Hei
    * Heiti SC
    * Adobe Heiti Std
    * Hiragino Sans GB
    * Kai
    * Adobe Kaiti Std
    * Adobe Song Std
    .. and yet even more. If you are working on Windows, you get a couple of "MS Xxx" fonts as well, and in that case you are definitely better off with Adobe's set.
    I must admit I only see the difference because Japanese fonts usually do not include a "full" set of glyphs (at least, not the "usual" 3,000 to 10,000). Joel, care to point out some tell-tale glyph forms?

  • What can be done to ensure that the Arabic text normally copied from Word to InDesign?

    What can be done to ensure that the Arabic text normally copied from Word to InDesign?
    At Word - normal Arabic text.
    At Indesign - wrong.

    See copy/pasted hebrew text is backwards and/or search the forum for "Arabic" (it has been asked numerous times before).

  • Freeze when copy paste text from word to Indesign CC

    Hi,
    I have a problem when working with indesign CC. When i'm copying text from word to Indesign, after a while my windows system freezes. Only Indesign works. Windows and word are frozen. After a while (several minutes) the system works agian.
    This problem occurs sinc I have Indesign CC.
    Windows 8, indesign CC, Word 2013
    I hope someone has a solution.
    Ragards Bas

    It's the PDF.
    Usually, you can copy text out of a PDF, but there is no guarantee *at all*. Older software used to take shortcuts to subset fonts: first character it encountered got coded as #1, the next as #2, etc. etc. If you do a search & replace of each of the nonsense characters, you'll slowly see the original text appearing (thst's not as simple as it sounds, though).
    A similar "problem" is that sometimes spaces don't get copied (there is no need for a "Space Character" in a PDF), and that you cannot copy contiguous lines of text as a single paragraph. All of it is because a PDF is not intended nor designed to be re-used after creation.
    If you really need this text and don't want to type it in, try to get hold of the original file.

Maybe you are looking for

  • Getting Error While inserting a record in table PDSNR through Tcode PA30

    Hi Experts, Im doing a transaction in  TCode PA30 by entering a pernr and infty as 14 and wage type. My need is when im entering a particular wage type in PA30 with infotype 14 , for that particular wage type and infotype i need to assign a different

  • My Ipod wont show up in My Computer. But it is visible in itunes.  HELP!

    OK I have tried everything reseting and exetera. It works on my old IBM laptop but on my new Dimension 9150 Dell. I just want to transfer music to my new computer. Please Somebody help!

  • Problem in assigning users to groups.

    Hello, After upgrading to EP 6.0 when try to add users to the groups we are getting the following error #1#com.sapportals.portal.prt.runtime.PortalRuntimeException: Access is denied: com.sap.portal.heartbeats.PortalHeartbeat - user: Guest, Caused by:

  • Can't log in after 10.6.8 update

    I just updated to 10.6.8 tonight, and went on the App Store to see if any more news about Lion. Noticed I had 4 updates, selected "Update All" and signed in.... gear wheel just spun and spun  and after a minute or two told me login failed. Opened iTu

  • Batch rename, name changes after frame 99

    Hi, I put a folder into bridge to do a batch rename and called the text MILAN/SYRIA and gave for first number 00. After frame 99 the name changed to a weird  Adobe Bridge Batch Rename Temp 10037 Which you can see better in the RAW windows, the 99 and