Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-15-2016, 02:05 AM
twozedz twozedz is offline VBA code to extract strings Mac OS X VBA code to extract strings Office 2013
Novice
VBA code to extract strings
 
Join Date: May 2016
Posts: 1
twozedz is on a distinguished road
Default VBA code to extract strings

Hi I have the text below in a notepad file. I would like to extract strings that start with "TKT-" and end with ".xml"


TEXT IN NOTEPAD FILE:

TKT-YHDIDOSOOSD.XML hwew asdajsdasdh asdasdasdas TKT-PYD-JHJHJSDSDSD.XML

UDkhaishdkashdhasdas* asdjasldjlasdasjdlasjdl jasldjlasjdlasjdlasjdlasjdaslkdjlasjdlasjdlasjdlas

kjlkhkashdkahskdhaskdhaskdhkasdhkashdkashdkashdkas hdkashdkashdkashdkashdkashdkash
naksdhaskjdhkashdkashdkashdkashdkjashdkjashdkjashd kjashdkasjhdkajshdkas

ahkjsdhaksj

aslasdjalsjdask TKT-JKSJDKSDJKSJD.XML asdkaskdhaskdhasjhdkashdash TKT-89823483hkshdfkhsd.XML





SO the vba code will paste the following in the cells of a spreadsheet
TKT-YHDIDOSOOSD.XML
TKT-PYD-JHJHJSDSDSD.XML
TKT-JKSJDKSDJKSJD.XML
TKT-89823483hkshdfkhsd.XML



Can someone please help and point me in the right direction? Thanks heaps!!!!!!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code to extract strings VBA code to login a web site and extract data to excel edneco Excel Programming 4 07-07-2015 02:05 PM
Extract VBA code to save in Word document Dave T Word VBA 4 01-26-2015 08:41 PM
VBA code to extract strings VBA code to extract specific bookmarks from multiple word files Rattykins Word VBA 4 06-27-2012 10:02 PM
Extract Numbers from Zip Code Karen615 Excel 3 09-21-2011 06:54 AM
VBA code to extract strings update style of all strings available between two specific strings vikrantkale Word 1 03-28-2011 06:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:21 AM.


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