Breaking large Word docs via VBA

I have a large Word doc that needs to be broken up and saved as a series of smaller docs for emailing. I know there are a number of solutions for breaking the doc into single pages, but these docs may be more than 1 page. The only way to distinguish
between 1st pages and other pages is the lack of the corporate logo on 2nd (or other) pages. How can I tell the system to search for each bitmap and insert a section start right before it?

well you could just iterate though the pages and see if you locate a picture.
http://stackoverflow.com/questions/18024209/iterate-through-pages-in-word-and-find-pages-contains-image
Then when found .. just add the section at the end of the page before..
http://msdn.microsoft.com/en-us/library/office/ff822179(v=office.15).aspx
http://social.msdn.microsoft.com/Forums/en-US/320b87e9-f445-4155-9489-b49139a977b3/word-macro-to-insert-section-break?forum=isvvba

Similar Messages

  • I'm having a problem sending a word doc via email. I have Mac for Office 08, when I save the document as a .doc or .docx, and send it to someone, they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon. How do I fix?

    I'm having a problem sending a word doc via email. I have Mac for Office 08, and I'm using Mavericks OS. When I save the document as a .doc or .docx, and send it to someone, (doesn't matter if its safari, chrome or firefox or on my yahoo or gmail accounts) they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon and I can read it. How do I fix?

    I suggest you post on the Microsoft Mac forums since it's their software you're having issues with.
    http://answers.microsoft.com/en-us/mac

  • RoboHelp freezing when importing large word docs

    What are your experiences with RoboHelp for HTML Help when
    importing large Word docs?
    Mine seems to stop responding and has to be restarted. Also,
    creating PDFs for large docs seems to be a problem.
    While I am here, could someone please answer these questions:
    1. Does RoboHelp support conditional inclusion/exclusion and
    replacement of text? Where you can use a condition to display one
    text OR another.
    2. Does Robo support Modular Help?
    3. What about automating output generation using batch files?
    Is this possible?
    4. Can PDF outputs be customized using templates?
    it looks like Robo offers partial solutions to each of the
    above questions but I will like to hear your experiences, as I am
    on evaluation the tool with limited time.
    TIA.

    Hi zmajwa and welcome to the community
    Please review the Posting Guidelines. You may do that by
    clicking
    here. Why? Because at this point, you have made exactly two
    posts. You have asked the same question in two different places and
    it is frowned upon here as it creates confusion and more work for
    all involved.
    The original thread can be viewed by
    Clicking
    here.
    Thanks... Rick

  • How to Open MS-Word doc via Swing...

    Hi,
    I have a requirement of providing a JButton in my app, upon clicking of which, i need to create a Word-Doc ( say xyz.doc & open it ( probably thru Word itself...??!!)
    Does anyone have a clue/idea as to how we could do this ??
    (Should i do an exec...or...is there anything special in Java...?!?!)
    Thanks in advance,
    fritz

    What's your problem? Creating a JButton? Making it do
    something? Or openin a Word document?No, not about a JButton...
    I need to provide a feature of Opening a Word Doc...
    Do let me know if u have any ideas on this...
    Thanks a lot...

  • Importing Word Docs with Images into RH7

    Hi All,
    I have a large Word doc which is full of images and text that
    I want to import into RH7. I've tried it and tried it, even
    converted it to PDF and tried it, but I don't get any of the images
    imported. I've discovered the images folder, but there's nothing in
    it and, just in case they're hidden(!), I've published and still no
    images.
    Can anyone help me with this?
    Thanks!

    No I have only been using it since Word 2 days. :-)
    Please don't mention the limit of 200 pages with graphics to
    my documents which can run to over twice that size.
    I repeat the point that if Word is struggling with this
    particular document, you cannot expect another application to work
    well with the document. RH does import Word documents with many
    images, it is something that I have done many times. I think the
    problem is something to do with the image type you have chosen
    (emz). If you look in the image import dialog you will see that EMZ
    is not a listed file type.
    Without being able to see your document, it is difficult to
    help you. Speak to your management. I regularly receive projects
    from people on this forum and nobody has ever had cause to
    complain. I would not risk losing the Adobe Community Expert status
    by revealing the content to anyone.

  • I cannot send a Pages document, Word format via email from my ipad if it has a picture in the the doc.  I can send a Word doc if it does not have a pic in it or pdf with a pic.  Any thoughs why a word doc with a pic in it won't email in Pages?  thanks

    I cannot send a Pages document, Word via email if the doc contains a picture.  If I email a Pages doc without a pic in Word format or pdf with a pic it with go through to sender?  Not sure why Pages won't send Word doc with a picture in it.  I check the security on the email recipient and the email doesn't get blocked or throw in the junk box?
    thanks,
    drainguy41

    If you have upgraded to Mountain Lion, Save As… has returned to the File menu when you hold down the Option/alt key. But you don't really "save" as other file types, you translate & export as Word or RTF or text or PDF & that is easily done by going to File > Export or Share > Export.
    Also, please do us all a favor & don't use all capitals in your posts, either the body of the post or the title. All caps is the internet equivalent of shouting & is very hard to read.

  • I want to email a Pages document as a Word doc. I used to be able to do this by clicking on share then send via mail then on Word and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    I want to email a Pages document as a Word doc. I used to be able to do this by clicking on 'share' then 'send via mail' then on 'Word' and an email would appear with my word doc attached.  Now the email does not come up.  Why?

    It's difficult to do more than guess when you don't say what version of OS X or Pages you're running, but if you're on the latest, have you tried the Share menu -> Send via Mail command?
    If that doesn't help, you may have better luck if you ask in the Pages forum:
    Pages
    When you repost, be sure to include full details about your versions so that people know what it is you're working with.
    Regards.

  • How to convert large Word 2007 doc (1200 KB) to PDF with Acrobat 9 Standard

    I'm trying to convert a large Word 2007 document to PDF with Acrobat 9 Standard.  It gets as far as 58% and then says it is unable to complete the conversion.  How can I fix this?

    The file you are working on is really not that large. There probably is a problem on a certain page of the document. Break the document in half. Try to create a pdf file from each half. Hopefully, one half prints properly and one-half does not. Take the half that does not break it in half.  Try to convert each half into a pdf, etc...
    Eventually, you will find which page has a problem. Most likely there is a graphic or a font used on that page that has problem. Most likely a graphic. That graphic will need to be recreated.

  • How to secure word docs, access only via username and password?

    I have created a CMS (Content Management System) where
    residents can access publicly made available word documents
    uploaded via the web by authourised members of a residents
    association. (no password needed)
    password only needed to upload
    I have also created a section for excecutive members only
    where documents for coming meetings are kept, but are not yet
    available to general residents. (password is needed to view these)
    All works fine apart from the executive section, all the
    documents seem to get 'spidered' no matter what is in the robot.txt
    file.
    this i know as i have been tracking visitors to it.
    the pages are not yet live or in use as i want to be sure
    that these 'not for public viewing' file are not viewed until they
    are in the public folder.
    each section will have their own folder, but google has
    'spidered' all pages! it seems that google and other sites are not
    taking notice of the robot.txt, i have read on some sites that this
    is common. how they do this is beyond me, i though that you could
    only spider a site that had a home page and that you follow all
    links contained within this initial page.? seems that this is not
    the case.
    what other methods can i try out that will protect these
    files.
    (please do not reply with, do not put them on the site!) i
    have had this with other forums in the past.
    only sesible answers please.
    and thank you in advance for your time.

    i have been busy looking around but not finding anything.
    My PHP scripts at present accept the word docs and store them
    in folders, lets say, www.site.com/secretfolder/...
    One suggestion is to have them in a database, this is not
    idea, but is going to be the last resort.
    the idea i like most is to have the outside the root www
    folder.
    what i am not sure of is how i allow access to them if normal
    access can not be used. i.e. www.site.com/myfolder/file.doc
    one way that has been suggested is streaming but this
    completely eludes me, i first thought streaming was for sound and
    video, but that aside, please can someone provide some links to
    sites that show some examples or more information on how i do this.
    i do not need the file to be uploaded as i can change my
    scripts to upload to the new folder that is outside the root www
    folder, what i do not understand is how i get the file back from
    this outside root folder to the user that is wanting to view it.
    my way of thinking is to create a temp folder inside the www
    folder but this means that the files will then be available to the
    robots again and if i was to have the folder cleaned after the file
    is taken what happens if the server or the persons pc was to crash
    or something, then the script will not complete and the file will
    still be available to view by the robots.
    or is their another way

  • Having issues with making word docs, email and webpages using Firefox to PDF. Here is my info and can you fix this via a remote login with my permission? Adobe X Standard 10.0

    Redownloaded this software into my new machine with Windows 7 and it just hangs up when trying to convert Word Docs, Emails via webmail and web pages to PDF.  I select it from the printers dropdown menu
    but it just hangs up.

    Is the install fully updated? If not consider doing so and trying again.
    Be well...

  • Large Word document imported into Pages with "Section Break Problems"

    Hi there,
    I am importing a large Word document with many photos (>250 pages) into Pages. Now, the problem is that when using the "page thumbnail" window to the left it marks all my windows with a yellow border.
    This means that I can't duplicate single pages - it will duplicate the whole stuff. Same thing for delete.
    I can go to the last character of each page and insert a "section break". This creates single pages. But it seems a bit odd to me, and with >250 pages, this is quite some work too.
    Any idea what I can do to solve quickly the issue?
    Thanks for any hints!

    Sections are what they say they are natural breaks in the document.
    Each section usually having headers footers and other basic content in common.
    Effectively just like chapters in a book or specifically designed pages in a magazine or report.
    If your text naturally flows from one page to the next then they should stick together.
    If on the other hand you are treating them all like single leaves of paper to be shuffled around, then you need a section break at the end of each page.
    3 ways you can quickly do this:
    1. There is a unique start to each page such as a return followed by a particular word. You can search on this combination replacing it with a section break followed by the word.
    2. You can make a short cut to do this from the keyboard
    3. You can copy a section break and paste it at the end of each preceding page.
    4. You can transfer by copying and pasting the content into a Layout mode document where every page is its own section.
    As with most work, planning, organisation and thinking before you leap, pays off in the long run.
    Peter

  • When I receive word documents via my yahoo on my mac, the format always come up as a TEXTEDIT doc.  This is causing me serious problems.  How do I enable my documents to open in the original format it was sent?

    when I receive word documents via my yahoo on my mac, the format always come up as a TEXTEDIT doc.  This is causing me serious problems.  How do I enable my documents to open in the original format it was sent?

    Do you have Microsoft Word installed on your Mac? If so, you can reassign all .doc files to Word by selecting the file in Finder and choosing "File > Get Info" from the menu. In the window that opens look for "Open with" and change the entry to "Microsoft Word".

  • Can I cut and paste directions obtained via maps into a word doc or something so I can see them if I can't connect to the internet

    Can I cut and paste directions form maps into a word doc - or save it somewhere on my iPad so I can access it when I can't access the Internet?

    Take a screen short.
    Simultaneously press the Sleep and Home button. You will notice an on-screen flash. If you have sound enabled, you will hear a camera click.
    The screen shot is stored in Camera Roll.

  • How can I distinguish special characters or signs in Doc through VBA?

    How can I distinguish special characters or signs in Doc through VBA?
    I have a few large documents written in word 2003 format and now I work on them under word 2007.
    Such large documents containing lots of special characters.  I want to change them into Microsoft 3.0 equation form(It is required by the team). I find no way but using function AddOLEObject and  Sendkeys through VBA. Common characters can be added
    to equation by function Sendkeys, but the return value of Asc() or AscW() for "double arrow", "in" , " not greater than " such special characters or signs, to name but a few are the same ,i.e., 40 And I cannot distinguish them.
    I found the link http://msdn.itags.org/word/44333/ may be of use to me, and the title is:
    How to read symbols from a DOC documents! (Microsoft Word)
     the original question is
    Using function "InsertSymbol", I can insert a symbol into a document. But
    how can I read a symbol from a document?
    Using "Characters(i).range.text", I can read a char. But when meeting a
    symbol, the value of "Characters(i).range.text" is always '('.How can I get the CharacterNumber of the symbol.
    And the final answer is :
    Hi chenfeng,
    Word protects symbols from symbol fonts if you insert them from the "Insert
    > Symbol" dialog.
    This is done so they aren't changed when you change the font or style. But
    it also results in Word reporting AscW( ) = 40 on all of them.
    I've posted a macro to "unprotect" them (or to protect them again if you
    want) ... just today again in
    Newsgroups: microsoft.public.word.vba.customization
    Subject: Symbol Characters
    Date: Mon, 3 May 2004 11:00:46 -0700
    Message-ID: <09f401c43138$8f92f900$[email protected]>
    It isn't archived on Google yet, but tomorrow you should be able to simply
    copy the message ID into http://www.google.com/advanced_group_search.
    Regards,
    Klaus
    But the link for the macro in the final answer is missing.
    Can anyone with kindness help me? Thaks a lot.

    Following Cindy Meister's Advice ,I use MathType SDK.
    The sample in MathType SDK in the following may be meaningful,but I do not know how the MTEF for cos^^2Theta, MTEF for sin^^2Theta and MTEF for 1 are generated .
    It looks much complicated,and I searched the docs in MathType SDK to get a explanation.Is there any function to generate them? I want to use this method to change commaon text mathematical signs( in special character table) and  Greek letters and characters
    with subscripts and superscripts to Microsoft 3.0 equation form.
    Can anyone with kindness help me?
    Sub MTEFTextSubstitution()
        Dim MTEFStr1$, MTEFStr2$, MTEFStr3$
        Dim stat
        'MTEF for cos^^2Theta
        MTEFStr1$ = "% MathType!MTEF!2!1!+-" + _
            " % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
            " % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
            " % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
            " % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
            " % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaci4yaiaac+" + _
            " % gacaGGZbWaaWbaaSqabeaacaaIYaaaaOGaeqiUdehaaa!3B65!"
        'MTEF for sin^^2Theta
        MTEFStr2$ = "% MathType!MTEF!2!1!+-" + _
            " % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
            " % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
            " % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
            " % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
            " % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaci4CaiaacM" + _
            " % gacaGGUbWaaWbaaSqabeaacaaIYaaaaOGaeqiUdehaaa!3B6A!"
        'MTEF for 1
        MTEFStr3$ = "% MathType!MTEF!2!1!+-" + _
            " % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
            " % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
            " % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
            " % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
            " % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaaGymaaaa!36A4!"
        Selection.Copy
        'Init API, reset transform
    '    If MTUtil.CheckMTDLLVersion = 0 Then Exit Sub
        If Not IsDLLVersionOK() Then Exit Sub
        MTXFormReset
        'first substitution
        stat = MTXFormAddVarSub( _
            mtxfmSUBST_ONE, _
            mtxfmVAR_SUB_PLAIN_TEXT, "<v1>", 0, _
            mtxfmVAR_SUB_MTEF_TEXT, MTEFStr1$, Len(MTEFStr1$), 0)
        If stat <> 0 Then
            MsgBox "1st MTXFormAddVarSub returned: " + Str(stat)
            Exit Sub
        End If
        'second substitution
        stat = MTXFormAddVarSub( _
            mtxfmSUBST_ONE, _
            mtxfmVAR_SUB_PLAIN_TEXT, "<v2>", 0, _
            mtxfmVAR_SUB_MTEF_TEXT, MTEFStr2$, Len(MTEFStr2$), 0)
        If stat <> 0 Then
            MsgBox "2nd MTXFormAddVarSub returned: " + Str(stat)
            Exit Sub
        End If
        'third substitution
        stat = MTXFormAddVarSub( _
            mtxfmSUBST_ONE, _
            mtxfmVAR_SUB_PLAIN_TEXT, "<v3>", 0, _
            mtxfmVAR_SUB_MTEF_TEXT, MTEFStr3$, Len(MTEFStr3$), 0)
        If stat <> 0 Then
            MsgBox "3rd MTXFormAddVarSub returned: " + Str(stat)
            Exit Sub
        End If
        'do the substitution
        stat = TransformGraphicEquation
        If stat <> 0 Then
            MsgBox "TransformGraphicEquation returned: " + Str(stat)
            Exit Sub
        End If
        MTTermAPI
        'Paste new equation
        Selection.Collapse Direction:=wdCollapseEnd
        Selection.PasteSpecial Placement:=wdInLine
    End Sub

  • CPU Usage - Generating Word Docs from RoboHelp X5

    If you have generated a fair-sized document through RoboHelp,
    and you are having problems with your CPU usage pegging out around
    100%, bouncing up and down between 50% and 100%, the page
    repainting as you scroll through the document, etc., this solution
    is for you!
    I am using RoboHelp X5 to generate large Word documents
    (2003). This solution worked perfect for me. The problem is with
    document corruption, apparently. After you have generated your Word
    document and opened the document, be sure to display the paragraph
    marks. You will probably see the “]” mark at or near
    the end of the document. Select your entire document,
    except for the final paragraph mark, making sure to exclude
    this symbol, and copy everything else. Open a blank Word document
    and paste this content into the new document.
    You will now need to reattach your template (.dot) file for
    the generated document through Tools/Templates and Addins:
    1. Locate the applicable document template and attach it
    (it's typically in the base generated project directory in RoboHelp
    - .dot file). Click the OK button to save.
    2. Return to Tools/Templates and Addins. Click the Organizer
    button to display the Styles tab.
    3. In the right-hand list (In Normal.dot), Close the
    Normal.dot file
    4. Open the same RoboHelp .dot template as you selected
    previously.
    4. Select all of the styles once they display in the right
    pane and click the <<Copy button to copy them all over to the
    document template. Confirm that you want to replace all styles in
    the document.
    5. Close the menu using the Close button. The dialog closes
    and your styles should all be updated, if your styles were set up
    appropriately via template and style sheet settings.
    You may need to also adjust the Page Setup page width
    settings, if necessary.
    Good luck!
    Liz0259

    Peter:
    Thank you for responding to me, as I may not have been clear
    enough, and I apologize for that. I was trying to keep it short and
    sweet. This problem started when I began using RoboHelp X5 this
    year.
    To clarify...
    - I'm not concerned with CPU usage during document
    generation, that is to be expected. The document will need to be
    generated originally from a RoboHelp WebHelp project. This does not
    change. The problem takes place AFTER you generate a large document
    and then open it in MS Word.
    - My documents are large, 140-500 pages. It took forever to
    scroll through the Word document (RoboHelp-generated), the screen
    kept repainting, and the CPU usage stuck fluctuating frequently
    between 50% and 100%, not allowing me to do much else. Editing
    those documents was a nightmare. Even if I shut down all other
    programs.
    - Something translates to the Word doc from RoboHelp that
    maxes out the CPU usage, and I can't locate the exact culprit.
    However, it appears to be tied to the faded "]" symbol at the end
    of the document (there is a "[" at the beginning, too). So you have
    to omit more than the last paragraph mark; that symbol also needs
    to be left out.
    - The "corruption" information came from Microsoft; it could
    be something other than that, but this is what they said. I found
    nothing that would help on the RoboHelp forum, so I went to
    Microsoft to see if they had a solution. Apparently, this is a
    common problem with Word 2003, but the articles didn't mention
    RoboHelp in the issues. I tried this solution, adding the omission
    of the "[" symbol, with complete success.
    - When you copy the document without the last paragraph mark,
    it will still include the headers/footers when you paste it
    (although you may need to adjust them slightly). This is not the
    problem.
    - When a document is generated, you can select to use a MS
    Word template, which I do. I fully use the style sheets in
    RoboHelp, and they match my Word styles (template) to keep things
    in sync. Actually, this Word template remains in the project; it is
    not moved to the folder that holds your Normal.dot file. So the
    link to the template in RoboHelp from your document does in fact
    remain intact. However, you can copy that template to another
    folder outside the project and link it from there, but it won't
    matter.
    - The Word template (.dot) needs to be reapplied in order to
    restore your styles, as the Normal.dot styles are applied when you
    copy the content over to a new document. It doesn't matter where
    you store the template. I reapply this SAME template after I copy
    and paste the content into the new document. This is not the cause
    of the problem. Note: The application of a template is not the same
    thing as going back to the master copy. This is still a fresh
    document, with the content pasted in and the same template applied.
    - I have tried deleting the local copy and starting over. I
    have moved the file to another location. I have renamed or created
    a 'save-as' copy of the file. I tried editing out any extra
    un-necessary merge-tags in Word, looked for macros, etc. All of
    these things do not resolve the CPU Usage problem.
    I hope this makes more sense. You can try it out if you wish,
    but you will need to do this with a large document and use the
    Print View when looking at the document in Word. You'll have less
    of a problem in Normal View, or with a smaller document (under 50
    pages).
    Good luck!
    Liz0259

Maybe you are looking for

  • HT1766 how do you get your phone to turn back on after you tried to restore it and it wouldn't?

    how do you get your phone to turn completely back on after you tried to restore it and it wouldn't restore?

  • ITunes movies poor video quality (very pixelated)

    Just bought a 5th gen nano, and synced it with some videos we bought on iTunes. The videos play but they are extremely pixelated. I have tested it on a few movies, and they are all the same. They are just SD movies or TV shows. Even our kids cartoons

  • Double Sided DVD format burning question

    Hi, I have the latest version of DVDSP and wish to know if it is possible to burn a each side of double sided DVD in different formatts. Specifically, I wish to make one side a DVD disc, and the other side a DVD ROM disc that will contain AIFF or MP3

  • WRT54GS - MAC Address Filter & Firewall SPI

    Hi, I just purchased a WRT54GS V 6 wireless router.  I updated the firmware to the latest (May 30) and the set up seems to be OK.  Using the security recommendations in the manual as a guide, I implemented them - the turn off SSID, and the others.  I

  • Problems with the SCXI-1126 Frequency Module

    I am finding that, at least my modules, are not responding according to the specifications. I on all channels have not been able to get full range that I set at 0-8kz 1hz filter with a 100mv pp ac signal coming in. The spec shows a 50mv signal for al