+ Reply to Thread
Results 1 to 4 of 4

VBA Script to import Excel text and numeric values into a desired format in Microsoft Word

  1. #1
    Registered User
    Join Date
    10-22-2016
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    19

    VBA Script to import Excel text and numeric values into a desired format in Microsoft Word

    Hi everyone,

    So I am looking to create a standardized word document with the correct values properly entered. How would I be able to pull values from different cells in an Excel sheet and auto populate it into Microsoft Word?

    It would basically be information such as Name, File number, Date, etc and I want it to automatically be put in a letter head format in Word for example.

    I know there is a way but I am reaching out to see if any experts on here want to give this a go. Any help would be kindly appreciated!

    Thank you

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA Script to import Excel text and numeric values into a desired format in Microsoft

    you will want to use mail merge, more than likely. ever used that? when you do, it creates database fields indicated by the symbols "<" and ">", subscripted. then you can merge excel or access data into it. or are you just wanting to make a single doc, with data pulled from a single XL file? to me, it wouldn't make any sense to write code for a one-off task.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,898

    Re: VBA Script to import Excel text and numeric values into a desired format in Microsoft

    Mail merge is built into Word. Have a look at this MS support page explaining how it works: https://support.microsoft.com/en-us/...b-0a948fa3d7d3
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    10-22-2016
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    19

    Re: VBA Script to import Excel text and numeric values into a desired format in Microsoft

    Quote Originally Posted by vba_php View Post
    you will want to use mail merge, more than likely. ever used that? when you do, it creates database fields indicated by the symbols "<" and ">", subscripted. then you can merge excel or access data into it. or are you just wanting to make a single doc, with data pulled from a single XL file? to me, it wouldn't make any sense to write code for a one-off task.
    Quote Originally Posted by AliGW View Post
    Mail merge is built into Word. Have a look at this MS support page explaining how it works: https://support.microsoft.com/en-us/...b-0a948fa3d7d3
    Thank you both! I don't mail merge is what I'm looking for. I was actually looking into something just like this: https://www.excelforum.com/excel-pro...-filepath.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: 6
    Last Post: 01-09-2021, 05:57 PM
  2. Import commands from microsoft word
    By gatorgirl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2015, 12:36 AM
  3. [SOLVED] Conditionally Format Shapes with Combination of Numeric and Text Values
    By tjessome16 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-04-2014, 08:51 AM
  4. Look at text file, and produce a new result set based desired format in the excel
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2013, 01:10 PM
  5. Text in Excel copied into Microsoft Word
    By rushdenx1 in forum Excel General
    Replies: 4
    Last Post: 01-10-2010, 06:14 PM
  6. Extracting text into desired format in Excel
    By mpendle in forum Excel General
    Replies: 6
    Last Post: 10-10-2009, 02:06 PM
  7. [SOLVED] How do I import Microsoft Word files into Microsoft Excel?
    By Excel in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-08-2005, 09:06 PM

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