Results 1 to 6 of 6

Thread: Can anyone help with importing data from a row in Excel into Word

  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    92
    Thanks
    7
    Thanked
    3 times in 2 posts

    Can anyone help with importing data from a row in Excel into Word

    Hello

    What I am looking to do is setup a Word template which will autofill. I want to put a number in a field on the template and for it to go and look in column A for that number. When it finds that number I want it to then take the data within that row from column's B,C,D and E and copy them into the Word document.

    Basically we want to type a job number into a Word document and for it to then check column A in a spreadsheet for this number, when it finds it we want the address data in column's B,C,D and E to be auto filed in the Word template.

    I know this isn't a great way for us to be working but I am looking for a stickie plaster to tie us over for a bit

    Thanks

  2. #2
    Mostly Me Lucio's Avatar
    Join Date
    Mar 2007
    Location
    Tring
    Posts
    5,163
    Thanks
    443
    Thanked
    445 times in 348 posts
    • Lucio's system
      • Motherboard:
      • Gigabyte GA-970A-UD3P
      • CPU:
      • AMD FX-6350 with Cooler Master Seldon 240
      • Memory:
      • 2x4GB Corsair DDR3 Vengeance
      • Storage:
      • 128GB Toshiba, 2.5" SSD, 1TB WD Blue WD10EZEX, 500GB Seagate Baracuda 7200.11
      • Graphics card(s):
      • Sapphire R9 270X 4GB
      • PSU:
      • 600W Silverstone Strider SST-ST60F
      • Case:
      • Cooler Master HAF XB
      • Operating System:
      • Windows 8.1 64Bit
      • Monitor(s):
      • Samsung 2032BW, 1680 x 1050
      • Internet:
      • 16Mb Plusnet

    Re: Can anyone help with importing data from a row in Excel into Word

    AFAIK what you're asking isn't a feature built into Word, the closest feature would be to make a mail merge document and then use the settings to print only the relevant record.

    (\___/) (\___/) (\___/) (\___/) (\___/) (\___/) (\___/)
    (='.'=) (='.'=) (='.'=) (='.'=) (='.'=) (='.'=) (='.'=)
    (")_(") (")_(") (")_(") (")_(") (")_(") (")_(") (")_(")


    This is bunny and friends. He is fed up waiting for everyone to help him out, and decided to help himself instead!

  3. Received thanks from:

    LSmith4285 (10-02-2011)

  4. #3
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,232
    Thanked
    2,290 times in 1,873 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: Can anyone help with importing data from a row in Excel into Word

    You can do this with VBA and controls, but it'd be a bit of a pain. I've written some very complex interactions into a Word document when I had no option, but I certainly wouldn't choose to do it. The big advantage of going down that route is that you could import the Excel object model as well as the Word one, making it easier to retrieve the data.

    However, what you're really trying to do is a mail-merge, which Word can do for you, and it'll be a fair bit easier to implement than messing around in VB. I suspect that you could combine the two approaches, using a text box to enter the job number and then filtering the results of the mail merge, but I'm not sure off the top of my head, and frankly that's the kind of work I charge people £50 an hour for normally

    Can you get the data into Access instead? It'd be *much* easier to query the job numbers that way (yet again I see a company using Excel as a database and it gives me the creeps...). In fact, if you could get Access you'd be able to create a little application that would do all this and then save the results as a formatted report. A little neater than your original intention (although possibly not quite as neat as a filtered mail-merge, tbh)

  5. Received thanks from:

    LSmith4285 (10-02-2011)

  6. #4
    Member
    Join Date
    Jan 2005
    Posts
    92
    Thanks
    7
    Thanked
    3 times in 2 posts

    Re: Can anyone help with importing data from a row in Excel into Word

    Thanks for the quick response guys. I think I will have a quick look at filtered mail merge's otherwise the users will just have to wait for the new ERP system to manage all of this for them.

    Apparently the last IT director banned Access hence we have so many spreadsheets

  7. #5
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,232
    Thanked
    2,290 times in 1,873 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: Can anyone help with importing data from a row in Excel into Word

    Quote Originally Posted by LSmith4285 View Post
    Apparently the last IT director banned Access hence we have so many spreadsheets
    In which case the last IT director knew less about IT than he probably should have Mind you, the mess of VBA and Word and .csv output I had to hack together was because a certain large local authority had such a paranoid IT department that they wouldn't even let people have Excel unless they could produce a fully-researched business case for why they should have it. My brief was: they need a data entry tool for a project we're helping with, the only application they can use is Word.

    Yes, it was a nightmare, and no, they didn't pay me enough to deal with that kind of nonsense!

  8. #6
    unapologetic apologist
    Join Date
    Nov 2005
    Location
    UK
    Posts
    1,954
    Thanks
    363
    Thanked
    274 times in 145 posts

    Re: Can anyone help with importing data from a row in Excel into Word

    what about an embedded excel table that uses a vlookup....?
    the vlookup data could be stored in a linked workbook
    One can never stop saying Thank You

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Word 2003 Issue: Unable to print past a certain Page
    By knivesuk in forum Help! Quick Relief From Tech Headaches
    Replies: 6
    Last Post: 19-06-2009, 02:15 PM
  2. Problems with RTFs in Word 2002... any users?
    By JimNastics in forum Software
    Replies: 4
    Last Post: 02-07-2008, 06:07 PM
  3. Advanced MS Word Templates
    By Matt1eD in forum Software
    Replies: 2
    Last Post: 09-03-2006, 09:16 AM
  4. English Slang Terms Explained.
    By Stewart in forum General Discussion
    Replies: 22
    Last Post: 22-12-2003, 02:08 PM
  5. Replies: 0
    Last Post: 20-08-2003, 11:42 AM

Posting Permissions

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