Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2011, 04:39 PM
soma104 soma104 is offline Importing data from excel using a macro Windows XP Importing data from excel using a macro Office 2003
Novice
Importing data from excel using a macro
 
Join Date: Apr 2011
Posts: 1
soma104 is on a distinguished road
Default Importing data from excel using a macro

Hi, I am running Office 2003 and need some help getting started with a project.



I have an excel workbook with 4 columns of data and anywhere between 1 and 100 rows. The columns have headers for LastName, FirstName, DOB, and PhoneNumber. The entries begin in row 2.

In word, I need to import that data so that I can print it in the following format:

Last Name: Doe, First Name: John, DOB: 040581, Phone Number: 5025551212

where Doe, John, 040581 and 5022221212 appear in cells a2, b2, c2 and d2.

Each entry needs to be on a separate page. I need the macro to recognize how many rows on the worksheet actually have data, and only import that data, and provide that same number of pages.

Hopefully, I explained this so that it makes sense. Can anyone help me.

Soma
Reply With Quote
  #2  
Old 04-14-2011, 05:10 PM
macropod's Avatar
macropod macropod is offline Importing data from excel using a macro Windows 7 32bit Importing data from excel using a macro Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi soma,

Use a mailmerge in Word. It's easy to set up and will do exactly what you've asked for. No macros required. And, if you change the amount of data, re-running the mailmerge will give you an new output. You can even specify which records to include/exclude.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing many vcf files in excel shiflerg Excel 0 01-26-2011 09:16 AM
Importing data from excel using a macro importing bulk info from excel... herbycanopy Word 3 04-03-2010 10:50 AM
Trouble importing from web page into Excel 2007 JHCOLVI Excel 0 02-25-2010 12:18 PM
Importing same Data into different documents Damonish Word 0 11-22-2009 07:24 PM
Importing data from excel using a macro Importing individual cells from Excel to Word themangoagent Word 1 10-12-2009 08:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft