+ Reply to Thread
Results 1 to 5 of 5

Help with Word VBA Code in saving the file

  1. #1
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Help with Word VBA Code in saving the file

    Hi,

    iam trying to split up the word document into individual files by section, i was able to split it, but the code fails while saving.

    Run time error:4198 Command Failed

    Here is the Code :
    Please Login or Register  to view this content.
    any help please

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Help with Word VBA Code in saving the file

    This seems to be a Word question, not an excel question, I will move it to the Word forum for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Re: Help with Word VBA Code in saving the file

    thank u

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: Help with Word VBA Code in saving the file

    Have you checked the contents of strTheText for characters that cannot be used in a filename? Also, your SaveAs command lacks the FileFormat parameter, which is essential if you're changing file formats.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: Help with Word VBA Code in saving the file

    Cross-posted at: http://answers.microsoft.com/en-us/o...1-a85cc401bee0
    For cross-posting etiquette, please read FORUM RULE 8: http://www.excelforum.com/forum-rule...rum-rules.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 02-27-2015, 05:17 AM
  2. Replies: 2
    Last Post: 02-26-2015, 10:19 AM
  3. Saving data in excel in a word file
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2014, 11:22 PM
  4. Saving Word file as PDF and losing formatting
    By darkyam in forum Word Formatting & General
    Replies: 8
    Last Post: 08-15-2013, 03:49 PM
  5. [SOLVED] My MS word is not saving files after I ran a code in excel
    By VKS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2013, 12:06 AM
  6. Macros for saving word file in current folder
    By baluiyer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-26-2010, 07:54 AM
  7. [SOLVED] Excel should undo/redo after saving a file--just like Word.
    By jeronimo.banuelos@lausd.net in forum Excel General
    Replies: 3
    Last Post: 05-25-2005, 07:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1