#1
|
|||
|
|||
Create a macro or Find/Replace Code to delete tags
Hello and Help!
I am exporting an .xml file from Word Press to Word that brings tags along with it. They aren't really html tags they are event tags from my calendar plug-in. I can use Find/Replace but there are 26 tags to remove so I am trying to create a macro to do this for me and am having no luck. Here's what an entry looks like. There must be an easy way to do a macro or find/replace to take out everything inside and including the <>? <event> <organizer>ACC</organizer> <organizer-phone>203-555-1212</organizer-phone> <organizer-website>http://waterburyregionarts.com</organizer-website> <organizer-email>info@ waterburyregionarts.com </organizer-email> <venue>AACC</venue> <address>123 Main Street South Southbury,CT 06488</address> <phone>203-555-1212</phone> <website>http://waterburyregionarts.com</website> <title>Acrylic Pet Portraits</title> <content>Acrylic Pet Portraits</content> <eventdate>Sep. 9, 16, 23, 30: 10 am - 12 pm</eventdate> <eventcost>130.00</eventcost> </event> Thanks in advance! I'm desperate. |
#2
|
|||
|
|||
A simple wildcard Find/Replace operation should do the job:
Find What: \<*\> Leave the Replace With box empty. Click on Replace All. |
#3
|
|||
|
|||
Solved!!!
Thank you so much Robert2, that worked. I was so close didn't know I needed the \'s in the equation. A million thank yous to you my friend! :
|
Tags |
deleting tags, find and replace, macros |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete lines with just a number on them - use macro or find & replace? | enso | Word | 2 | 05-20-2019 02:58 AM |
Need help to create macro to find and replace if conditions are met | limsp | Excel Programming | 1 | 04-19-2019 06:45 AM |
Macro code that prompts user to enter text, then does find/replace. | sfvegas | PowerPoint | 0 | 01-10-2016 08:02 PM |
Looking for code to create a macro that prompts user to enter text, then does a find/replace. | sfvegas | PowerPoint | 0 | 01-08-2016 02:22 AM |
How to use Find and Replace with HTML tags? | srz92 | Word | 0 | 07-17-2013 07:55 AM |