Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2013, 01:56 PM
Eric855 Eric855 is offline Extracting data from excel Windows XP Extracting data from excel Office 2007
Novice
Extracting data from excel
 
Join Date: Jul 2013
Location: Wyomissing, PA
Posts: 3
Eric855 is on a distinguished road
Default Extracting data from excel

I need to write a text document that will be used to find and replace text in AutoCAD. The code would be as follows.

reptext
old name


new name

I need to repeat this hundreds of times using a different old and new name each time. I have an Excel spreadsheet containing all the old and new names. Is there a way I can extract the data from the spreadsheet to put into the Word document? Thanks for any help.
Reply With Quote
  #2  
Old 07-23-2013, 09:54 PM
Charles Kenyon Charles Kenyon is offline Extracting data from excel Windows Vista Extracting data from excel Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Mail Merge - directory or labels?
Mail Merge
Reply With Quote
  #3  
Old 07-23-2013, 11:19 PM
eNGiNe eNGiNe is offline Extracting data from excel Windows 7 32bit Extracting data from excel Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Just out of curiosity, where does Word fit in if you're using a text file to drive AutoCAD search/replace? I didn't know this was possible, and it sounds like a handy technique to be aware of
Reply With Quote
  #4  
Old 07-24-2013, 04:25 AM
Eric855 Eric855 is offline Extracting data from excel Windows XP Extracting data from excel Office 2007
Novice
Extracting data from excel
 
Join Date: Jul 2013
Location: Wyomissing, PA
Posts: 3
Eric855 is on a distinguished road
Default

Once the Word document was created I would save it as a .txt file and then change it a .scr file which is a script file used by AutoCAD.
Reply With Quote
  #5  
Old 07-24-2013, 11:02 PM
eNGiNe eNGiNe is offline Extracting data from excel Windows 7 32bit Extracting data from excel Office 2010 64bit
Expert
 
Join Date: Jan 2012
Location: Brussels [BE]
Posts: 746
eNGiNe is on a distinguished road
Default

Can't you just copy/paste from the spreadsheet into a text file? if the format is reptext [tab] oldname [tab] newname, that's ideal; if it uses newlines instead of tabs, the editor will take that in its stride.
Reply With Quote
  #6  
Old 07-25-2013, 04:13 AM
Eric855 Eric855 is offline Extracting data from excel Windows XP Extracting data from excel Office 2007
Novice
Extracting data from excel
 
Join Date: Jul 2013
Location: Wyomissing, PA
Posts: 3
Eric855 is on a distinguished road
Default

I was able to do it using mail merge. Thanks for the help.
Reply With Quote
  #7  
Old 07-25-2013, 08:02 AM
Charles Kenyon Charles Kenyon is offline Extracting data from excel Windows Vista Extracting data from excel Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You are welcome.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting data from excel Extracting data from ppt graphs without linked spreadsheet Abol PowerPoint 2 06-27-2013 07:42 AM
Extracting data from excel Extracting text from a Word Doc into Excel dgcarlin Word VBA 1 07-06-2012 05:46 PM
Extracting Contacts Data from Excel Caesar Outlook 1 05-08-2011 05:54 AM
Extracting data from excel extracting data from Table to text file Anirudh_Dsp Word Tables 1 05-23-2010 07:48 AM
extracting files from oracle10g into excel janejuzz Excel 0 05-18-2009 12:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:38 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