Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-27-2011, 06:48 AM
OTPM OTPM is offline Need Macro or Formula Help Windows 7 32bit Need Macro or Formula Help Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Smile

Hi mbocian
I amnot sure there is a macro that could do what you want however there is a way you can do it using the basic search and replace commands in MS Word. If you follow the instructions below word for word it will do 98% of what you want and you will then need to do a little tidying up in Excel at the end of the process. Follow the steps in exactly the order shown:
1. Save the file as a text file (csv).
2. Open the text file with MS Word (any version will do).
3. Enter Ctrl+H (this will invoke the search and replace dialogue box).
Note: When entering in the search and replace boxes enter exactly what is between the single quote marks in each case only - take care to also enter a space where shown.
4. In the search box enter '^p^p' and in the replace with box enter '^p'. Then enter Alt+H and then click on the OK buton.
5. In the search box enter '^p"' and in the replace with box enter '^p'. Then enter Alt+H and then click on the OK buton.
6. In the search box enter '",,' and in the replace box enter ',,'. Then enter Alt+H and then click on the OK buton.
7. In the search box enter '"^t' and in the replace box enter '^t'. Then enter Alt+H and then click on the OK buton.
8. In the search box enter '",' and the the replace box enter '^t. Then enter Alt+H and then click on the OK buton.
9. In the search box enter '^t"' and in the replace box enter '^t'. Then enter Alt+H and then click on the OK buton.
10. In the serch box enter '"^p' and in the replace box enter '^p'. Then enter Alt+H and then click on the OK buton.
11. In the search box enter ', ' (remember the space here) and in the replace box enter '^t'. Then enter Alt+H and then click on the OK buton.
12. Save the file (do not change the format when you save it).
13. Open Excel and import the text file making sure you use "Tab" as the delimiter.
You will have some minor tidying up to do but this process will get you approximately 98% what you want.
Hope this helps.
TKHussar
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Macro or Formula Help PMT Formula OneOleGuy Excel 4 03-05-2011 09:54 AM
Need Macro or Formula Help Help with Formula Corca Excel 6 02-22-2010 09:40 PM
Need Macro or Formula Help If formula sixhobbits Excel 1 10-02-2009 08:02 AM
Help for formula dehann Excel 5 05-01-2009 10:44 AM
Need Macro or Formula Help Need help with a formula tinkertron Excel 11 04-16-2009 11:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:06 PM.


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