Forum Moderators: open
An example of the word doc is:
Bobs Blue Widget Store
1 Anytown, Anycity
Anycountry
+44 123 4567
Bob Smith
Managing Director
Sells Red widgets too
Widgets Type One
Steves World of Widgets
2 Sometown, SOmecity
Neverland
+44 456 7890
Steve Stone
CEO
Widgets Type Two
The problem is that 7 lines down on each address is up to 3 or 4 lines of rubblish I don't need. These make it impossible for me to turn this into my database as I can never work out where the last line (needed) is on each one.
What I really need to do is something like:
Keep lines 1, 2, 3, 4, 5, 6 and last and delete the rest for each block.
Anyone got any ideas how this can be sorted?
Conn.Open "Driver={Microsoft Excel Driver (*.xls)};" & _
"DriverId=790;" & _
"Dbq=c:\somepath\mySpreadsheet.xls;" & _
"DefaultDir=c:\somepath"
Check out connectionstrings.com for some more tips.