Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Populate Word Document from Excel

Reply  
Thread Tools
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
22-Jul-2008, 05:00 PM #1
Solved: Populate Word Document from Excel
Hello,

I have an Excel sheet that contains data per row. At the end of each row, I want to put a button (or a hyperlink to a file) that will put the data from that row into a new Word document, something like a printer-friendly document.

Please find enclosed the Excel file and the DOC format that I need.
Attached Files
File Type: zip files.zip (4.7 KB, 355 views)
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
22-Jul-2008, 05:26 PM #2
The easiest way to do this is to create a generic Word "template" file and add form fields to it. Then you can use a button click event in your workbook that will fire some VBA code to transfer the info to your template. Do you want the resulting Word document to be automatically saved with a particular filename to a certain location or will simply displaying it be enough?

What version of MS Office / Excel / Word are you using?

Regards,
Rollin
Aj_old's Avatar
Computer Specs
Senior Member with 869 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
23-Jul-2008, 02:25 AM #3
Smartcard, isn't easier to make a new sheet in Excel, in which you'll have the data arranged as you need? This in the case you need this only for printing!
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 02:25 AM #4
Quote:
The easiest way to do this is to create a generic Word "template" file and add form fields to it. Then you can use a button click event in your workbook that will fire some VBA code to transfer the info to your template.
Yes, this is the option I need, but sorry I am not good at VBA codes.

Quote:
Do you want the resulting Word document to be automatically saved with a particular file name to a certain location or will simply displaying it be enough?
Not very important to save, simply pop up the DOC file while clicking the said button will be sufficient.

Quote:
What version of MS Office / Excel / Word are you using?
MS Office 2003 SP3

Thanks a lot.
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 02:27 AM #5
Quote:
Originally Posted by Aj_old View Post
Smartcard, isn't easier to make a new sheet in Excel, in which you'll have the data arranged as you need? This in the case you need this only for printing!
No, I don't need new sheet in Excel, I need the Word file to be created using a single row data from the Excel.
Aj_old's Avatar
Computer Specs
Senior Member with 869 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
23-Jul-2008, 02:31 AM #6
How many rows of data you can have in the sheet?
What you'll say if will be used only one button, and it will transfer the data from the selected row to Word, or a button to the end of each row is the only way you wanna it be done?
__________________
“I hear, I know. I see, I remember. I do, I understand.” (Confucius 551 BC – 479)
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 02:35 AM #7
Quote:
Originally Posted by Aj_old View Post
How many rows of data you can have in the sheet?
What you'll say if will be used only one button, and it will transfer the data from the selected row to Word, or a button to the end of each row is the only way you wanna it be done?
The sheet will have growing number of row's now it may have 30 but later will will increase even upto 1000

I believe one button approach would be fine.
Aj_old's Avatar
Computer Specs
Senior Member with 869 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
23-Jul-2008, 03:32 AM #8
Try the file I uploaded!
Select one cell from the row you need to export to word, and hit the "Export to Word" button!
It will create a new word doc (if word application is not running it will start it) with the data you need in it!
Attached Files
File Type: xls carsheet.xls (44.0 KB, 1622 views)
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 03:57 AM #9
Quote:
Originally Posted by Aj_old View Post
Try the file I uploaded!
Select one cell from the row you need to export to word, and hit the "Export to Word" button!
It will create a new word doc (if word application is not running it will start it) with the data you need in it!
This is great, but can we have the data populated to a Word template? meaning I will have Word file with other text etc., and this row data will be inserted in to its positions.
Aj_old's Avatar
Computer Specs
Senior Member with 869 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
23-Jul-2008, 04:04 AM #10
Quote:
Originally Posted by smartcard View Post
This is great, but can we have the data populated to a Word template? meaning I will have Word file with other text etc., and this row data will be inserted in to its positions.
You want data to be added into a word file, which already exist and has some data in it, or just put data into a new word file created on a specific template?
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 04:07 AM #11
Quote:
Originally Posted by Aj_old View Post
You want data to be added into a word file, which already exist and has some data in it, or just put data into a new word file created on a specific template?
I want data to be added into a word file, which already exist and has some data in it.
Aj_old's Avatar
Computer Specs
Senior Member with 869 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
23-Jul-2008, 04:09 AM #12
Quote:
Originally Posted by smartcard View Post
I want data to be added into a word file, which already exist and has some data in it.
Where data should be added? What is the structure of the doc? Name, and so on! Is doc open or excel should open it?

If it's posible post a sample!
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 04:20 AM #13
Quote:
Originally Posted by Aj_old View Post
Where data should be added? What is the structure of the doc? Name, and so on! Is doc open or excel should open it?

If it's posible post a sample!
Please find enclosed sample doc. I want to keep this DOC as a template and once the button clicked the data will be filled here. I think in that case the DOC should have book marks for fallible data fields?
Attached Files
File Type: zip invoice.zip (4.1 KB, 633 views)
Aj_old's Avatar
Computer Specs
Senior Member with 869 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
23-Jul-2008, 04:25 AM #14
Smartcard the same question again!
Why having this on a separate worksheet in excel isn't good for you!
The doc file will be send to someone or just used fro printing?
smartcard's Avatar
Member with 66 posts.
 
Join Date: Jun 2007
23-Jul-2008, 04:29 AM #15
Quote:
Originally Posted by Aj_old View Post
Smartcard the same question again!
Why having this on a separate worksheet in excel isn't good for you!
The doc file will be send to someone or just used fro printing?
Good idea to keep it on a separate worksheet, but some times Excel is difficult to format to print etc.,
Reply

Tags
excel, macro, office 2003, populate

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:12 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.