Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 05-15-2016, 06:00 AM
NoSparks NoSparks is offline VBA code to extract strings Windows 7 64bit VBA code to extract strings Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

'tis very unfortunate the OP is incapable of reading or following any of the forums rules and/or has no respect for those rules nor the time of the very people from which they seek assistance.

Should have a read of this for some kind of understanding.

So no one here wastes their time.

https://www.msofficeforums.com/excel...t-strings.html
http://www.excelguru.ca/forums/showt...xtract-strings
http://www.mrexcel.com/forum/excel-q...t-strings.html
http://chandoo.org/forum/threads/vba...-string.29464/
Reply With Quote
Reply

Thread Tools
Display Modes


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:04 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