General discussion
March 28, 2003 at 07:32 AM
winmorgan

Writing a macro or code in Word

by winmorgan . Updated 23 years, 6 months ago

I’d like to know if someone can tell me how to write some sort of macro or code to replace strings of characters in Word. Here’s what I’m trying to deal with: A list of MP3 files which looks like this:

Track 17: Length: 03:57.69, Pause frames: 150, Filters: 0, Name: ‘OBWAT – I’ll fly away.mp3’.
Track 18: Length: 04:19.61, Pause frames: 150, Filters: 0, Name: ‘David Lindley – Pay Bo Diddley.mp3’.
Track 19: Length: 02:09.07, Pause frames: 150, Filters: 0, Name: ‘David Lindley (BrowneAlb.)-Fiddlin’ Around 1975.mp3′.

I want to replace everything from “Length” through “Name:” Obviously, global search and replace won’t work because the Length numbers change for each song. So…is there a way to tell Word to take everything from “Length? through ?Name:” and replace it with a single space?

Thanks for any help,

Win

This discussion is locked

All Comments