+ Reply to Thread
Results 1 to 5 of 5

Saving excel table to word

  1. #1
    Registered User
    Join Date
    04-07-2016
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Saving excel table to word

    Hi Everyone,
    To start I am a novice at any type of coding and am starting to learn. I have borrowed the code below.
    I have an Excel workbook with a button to allow the contents of the table to be exported to Word. The contents on the table are hyperlinked in Excel and when exported to Word the hyperlinks change to Absolute paths. I need to keep them relative. I have done some research and have found that it has to be saved as a .doc file not a .docx. Can somebody look at the code I have a guide me how to ensure that the Word document is automated to be saved as a .doc?

    Please Login or Register  to view this content.
    Many thanks
    Last edited by alansidman; 12-08-2016 at 06:37 PM. Reason: code tags added

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Saving excel table to word

    If saving as a .doc in Word the correct syntax is:
    Please Login or Register  to view this content.
    So building up the string, I would try something like this:
    Please Login or Register  to view this content.
    Note - I have not tested the final line but logically it seems correct

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Saving excel table to word

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    04-07-2016
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Re: Saving excel table to word

    Quote Originally Posted by kev_ View Post
    If saving as a .doc in Word the correct syntax is:
    Please Login or Register  to view this content.
    So building up the string, I would try something like this:
    Please Login or Register  to view this content.
    Note - I have not tested the final line but logically it seems correct
    Thanks Kev, worked well.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Saving excel table to word

    You are welcome


    Feel free to click on * to add reputation if you are happy with help given
    Also if your original question is answered please click on Thread Tools (top of thread) and mark thread as solved (keeps things tidy)
    But you can still ask further questions after that if you need some associated help.

+ 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. [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
  4. Saving excel as word document
    By excel_help12 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-25-2012, 02:55 AM
  5. Excel - Word - Reference Saving!
    By clarkson001 in forum Excel General
    Replies: 1
    Last Post: 02-14-2011, 10:26 AM
  6. [SOLVED] saving work in word/excel onto a usb flashdrive
    By Julie in forum Excel General
    Replies: 2
    Last Post: 12-19-2005, 11:49 AM
  7. How to prevent saving over Excel and Word Files
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2005, 11:05 AM

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