Over 1 million tech questions and answers.

Word macro to format plain text using HTML tags

Q: Word macro to format plain text using HTML tags

Hello.

I haven't worked with Word scripts before and don't really know if this is possible, but from what I've read it should be.

Basically, I use a plain text editor when I write on my phone on the go, where I use HTML tags to indicate formatting like this:

Normal text <i>text I want italic,</i> some more normal text

Is it possible to create a script that makes words between <i> tags italic and then remove the tags? (same for <b> for bold and <u> for underlined text) and how would I record or write one?

And also, can I use one to remove blank lines?

I use Word 2010

RELEVANCY SCORE 200
Preferred Solution: Word macro to format plain text using HTML tags

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Word macro to format plain text using HTML tags

I imagine you could write a macro to that checks this and does the appropriate action.

You will however have to establich the codes you will be using.

I don't know if there will be a conflict when you open word and depending upon the layout <i> might be interpreted before the macor runs, but I think it's a aquestion of trial and error,

<i> </i>
<b> </b>
<u> </u>
<rmv> </rmv>
etc...

Read other 1 answers
RELEVANCY SCORE 88.8

I recently read that if you set your email settings to receive mail in plain text you won't receive spam because most spammers send mail in HTML. Is this true? What is the difference in how plain text and HTML text appears in an email and is there a disadvantage in using plain text?
 

A:Plain Text or HTML?

If you use HTML email, it is easier for spammer to tell if you viewed the email. That way they know they have a valid email address.
 

Read other 2 answers
RELEVANCY SCORE 88

Hello, although not a business person I thought this might be the best place to get an answer to my query.
Which is the most preferred text, HTML or Plain Text.
I use OutlookXP Office 2002.
 

A:(Resolved) HTML or Plain Text

Read other 7 answers
RELEVANCY SCORE 88

I had to reinstall Incredimail this week after losing my hard drive crashed last week. When I receive emails now they are coming in as PLAIN text not in HTML. I have checked all my settings and contacted the HELP folks at Incredimail and nothing is resolved yet. Before my hard drive crashed Incredimail was working fine. I still am using IE 7 as my browser and use Windows XP. HELP!!!!:wave:
 

A:Incredimail Plain Text vs HTML

First, IncrediMail is eevil and you shouldn't use it! But you wouldn't listen to me anyway..

IM uses IE to render HTML, so it could be that your version does not work well with IE7. Do you have the latest version of IM installed?
 

Read other 3 answers
RELEVANCY SCORE 88

I normally use Outlook Express 6 but recently I installed Outlook to help someone troubleshoot a problem. It's still on my system but I do not use it.

Now whenever I send a message I get a pop up telling me that some people don't want to recieve HTML mail. Then it asks me how I want to send it; HTML or Plain Text.

I get this annoying pop up everytime I send mail and I can't figure out how to get rid of it. I tried uninstalling Outlook but it seems I can't get rid of it unless I uninstall the whole office suite.

Any suggestions? Thanks
 

A:HTML Mail vs Plain text

Read other 8 answers
RELEVANCY SCORE 86.8

Heyas,

I have Outlook 2003 and I have two problems:

1. When replying to HTML emails, my reply automatically becomes HTML formatted despite having set Outlook to create all new messages, forwards, and replies in Plain Text. What gives?

2. When replying to a Plain Text email, my signature is not automatically inserted. My signature is in Plain Text. What the..? But if I reply to a HTML email, it inserts my signature.

Any ideas?
 

Read other answers
RELEVANCY SCORE 86.8

When I send an email to several individually named recipients, some are able to see an embedded gif and some get it as plain text. Is there something I should change in my settings to avoid this? I am running Windows XP Pro and Outlook 2003. Thank you!!
 

A:Outlook 2003: HTML to Plain Text

If some are receiving it properly, then the problem is not at your end, the ones who are seeing it as plain text need to change their settings to allow HTML and to show images.
 

Read other 2 answers
RELEVANCY SCORE 86.8

Small poll.
Which one mode do you prefer when you send or receive emails?

A:Do you opt for Plain Text or Full HTML in your emails

Attach a poll to the post?

Hah! Cheers john

Read other 6 answers
RELEVANCY SCORE 86

I create html emails and sent out through outlook 7 but when recieved they are plain text with attachments for graphics. Yet, they appear html in outlook 7! It started fine but issues started this past week. HELP! I love my html!
 

Read other answers
RELEVANCY SCORE 86

  
Quote: Originally Posted by Golden


I think that might be the problem - their ISP, for whatever reason, converts their email to plain text. It also could be that your ISP converts any mail from their ISP to plain text.

Unfortunately, there isn't much/anything that can be done about that.

Regards,
Golden



I have two addreses. One provided by my ISP and the other my web host - which we just switched this past weekend. I have spoken to the latter and asked if there is any setting they se anywhere that could convert HTML to text and naturally the answer was no.

A:Outlook 2010 html appearing as plain text

I'm using Outlook 2010 64bit as my client to my Hotmail account. On my previous computer, I had the same setup only 32 bit Outlook 2010 and it worked fine. On my new build, some but not all, HTML emails are being rendered as plain text. It seems to be more common if the client is running as opposed to starting the client. The emails are not specific to any sender and the weird thing is that I can move those emails that aren't rendering correctly to a temp folder in Outlook, sync with Hotmail, go to the Hotmail web interface and move those emails back to the inbox from the temp folder, resync and they show up rendered as HTML in my Outlook client. That tells me that it isn't the emails themselves. I have found no other way for Outlook to recognize these emails as HTML once they have been opened in the client. Weird no?

Read other 3 answers
RELEVANCY SCORE 85.6

Hi,

I saved an email in a personal folder with some plain text like username/password details.

When I open the email today, it all turned to lot of html tags and I see my text is inside the html tags.

How to change back to plain text?

Read other answers
RELEVANCY SCORE 85.6

Hi,

I saved an email in a personal folder with some plain text like username/password details.

When I open the email today, it all turned to lot of html tags and I see my text is inside the html tags.

How to change back to plain text?

Read other answers
RELEVANCY SCORE 85.2

I'm trying to resolve a problem for a client who is using Outlook 2000. They use the HTML format in their emails as they have a nifty signature and use other HTML options. They also print these emails. When they print, the formatting of the email is different from what is on the screen. Once I switch the email to plain text, the onscreen appearance resembles the printout, but the signature is also converted leaving a mess. There is no line wrapping on the printout (in HTML mode) either and some parts are printed off the page.
Thanks for any advice.
 

Read other answers
RELEVANCY SCORE 85.2

My office recently upgraded to Office 2007. By default, Outlook is configured to convert all incoming messages to plain text. This is a setting that we do not have the rights to change. However, when we used to have Outlook 2003 all the emails that were originally in HTML format could be converted back to HTML once we opened up the email and verified it was a trusted email. There was simply a "convert this to HTML" option that would show up somewhere in the header. This is no longer the case in Outlook 2007.

I can't for the life of me figure out how to convert the text to HTML on INCOMING emails. Outgoing isn't a problem. I've even tried editing the incoming email or forwarding it and then converting to html but it doesn't display properly. Any images that were in the email can only be viewed one at a time by clicking directly on the picture link, but not with the rest of the email.

Any ideas?
 

A:Convert plain text email to html - Outlook 2007

Read other 6 answers
RELEVANCY SCORE 85.2

We use Outlook 2007 in our office. About two weeks ago, all of the emails I have been sending to the boss have been arriving in her Inbox as Plain Text. This morning she didn't receive the new staff member's email contact info I attached to a group message...everyone else in the office received my message in HTML, with the attachment, no problem.
I did some surfing this afternoon...found suggestions to check Email Settings under Trust Centre in Outlook...not the problem. Also found some allusions to AVG being the problem, checked those settings, again...not the problem.We need to get this sorted ASAP.
Thanks very much for your help!
 

A:Solved: Outlook suddenly changing HTML to plain text

More surfing last night found this...

Open the Contacts folder in Outlook. Double-click the contact you want to change.
Double-click the contact's email address.
Uncheck "Send plain text only" in the "Internet Format" box. Press "OK."

When I got to work this morning and looked, sure enough...Send Plain Text only had somehow gotten checked. I unchecked it, sent a test message and all is good again.

Bizarre!!
 

Read other 1 answers
RELEVANCY SCORE 85.2

I'm a new user to Outlook 2003. My question is can I set up outlook somehow to automatically format my responses to be in HTML format, regardless of the format of the original email I received? I think this was an option in Outlook 2000, but I can't find that particular setting in 2003...

The reason I'd like to do this is because my signature is automatically placed in every reply, but in responses to plain text messages the signature looks very...plain.

A different but related subject - if I were to set up email messages to NOT automatically insert a signature, can I then insert the signature on my own? In Outlook 2000 I could go to "Insert" and select a signature, but there is not signature option in the Insert pull down menu in 2003 emails.

Thanks.
 

Read other answers
RELEVANCY SCORE 85.2

My Outlook is possessed! Not all the time but random times and messages, it changes the email message from html format to plain text and deactivates the links inside the message.
Does anyone have a clue why and how to fix it? Thanks! Alan
 

A:Outlook - changing html to plain text and removing links

Read other 16 answers
RELEVANCY SCORE 84

Okay, I have a nice corporate email signature on the bottom of each email.

It looks great in HTML,
I have also check inside the txt and rich signature files inside
:c/doc&set/%user%/programfiles/microsoft/signatures..etc
to make sure it looks good in those formats. and it would seem okay in those files.

When I open a new message to compose in outlook, it auto opens in html. when I change this
to rich text, there is an error>
it repeats my web address and also reveals and web address from my past company!

how is this hidden, and how can i remove it?

Thanks in advance.
 

A:Problem with html Signature in outlook 2003, when seen in plain/rich text.

I am Pretty good in HTML, But I am enable to suggest regarding your doubt. I too waiting for the suggestion. Please suggest us,,,

netgear wireless set up
 

Read other 1 answers
RELEVANCY SCORE 84

Am using Vista Home Premium and Outlook 2003.

Sometimes, but not always (even during the same send/receive) Outlook 2003 converts incoming HTML email to plain text. This has been happening on and off for the last three weeks.

Outlook options are set to NOT convert to plain text and to use Outlook as email editor, with html for new messages. There are no add-ins or com options installed.

Like I said, this doesn't happen all the time, but does happen every time from one particular address. I've check with him and all other people sent the same email received it OK.

Am also using Avira Antivir for email virus scans.

Help would be appreciated!

Nick
 

A:Outlook 2003 sometimes converts incoming HTML email to plain text

DearNick,

I wondered whether you'd had any luck with your problem as I have exactly the same. The email that converts to plain text is always a gmail account and if I read the mail through my secure webmail account, I don't have the problem.

Did you manage to sort out the problem?

Ruth
 

Read other 3 answers
RELEVANCY SCORE 83.2

Hi, I haven't found an answer to this yet, so I'm opening another thread.

I'm using Outlook 2003 in Win 7, and occasionally emails arrive (from gmail and hotmail accounts) that should be HTML but have been converted to plain text, with all the background HTML code (makes for long messages) and none of the pictures or graphics the sender sent.

It happens occasionally - mail from the same source sometimes comes through as HTML, and sometimes is converted to plain text and un-readable.

The Read All Standard Mail In Plain Text cb has always been clear; I don't have any add-ins installed; don't have AVG installed (I don't have any anti-virus programs installed at the moment).

Anyone have any other ideas I can try?
 

A:Outlook 2003 sporadically converts incoming HTML mail to plain text

It depends on how the sender is sending the email. Do all other emails from all other sources come in in the correct format?
 

Read other 2 answers
RELEVANCY SCORE 83.2

I have my default email format set to .html. When I compose a new message it looks like everything's working just fine. I send my .html message and even in my sent box, it shows that my .html message formatted properly. However, when others open my messages, they have been converted to plain text. I've checked my office-mates computers and they do not have the setting "convert incoming messages to plain text" so that can't be the problem. I've tested it with 5 people using Outlook who can receive .html messages just fine. I've tested it with my Yahoo address to. For some reason, Outlook is converting my .html (and Rich Text too) email messages into plain text. Everyone else in the office sends and receives html email with a nicely formatted signature just fine. Why can't I? Please help!

I'm running Windows XP with Office 2003 SP 2.

Thanks,
 

A:Solved: Outlook 2003 Bug - html outgoing emails converted to plain text

Do you have any anti-virus software running on the PC? Some antivirus software may install an Outlook add-in that may convert the message to plain text to avoid spreading of viruses. Check under your "Add-Ins" and disable them all to see if one of the add-ins is causing the problem. If you are on an Exchange server the admin may have also disabled this functionality.

Regards,
Rollin
 

Read other 3 answers
RELEVANCY SCORE 83.2

Dear macropod,

Split from: insert html tags into word document

I've never dealt with macros before and trying to do this myself is making my brain melt haha.

However i need it ONLY for files that are opened, not located.

Also is there a way to turn it on and off if it is automated?

Could you please help?

A:Parse HTML tags in Word

For that you could use:

Code:
Sub UpdateOpenDocuments()
Application.ScreenUpdating = False
Dim wdDoc As Document
For Each wdDoc In Documents
With wdDoc.Range.Find
.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.ClearFormatting
.Font.Bold = True
With .Replacement
.ClearFormatting
.Text = "<b>^&</b>"
.Font.Bold = False
End With
.Execute Replace:=wdReplaceAll
.ClearFormatting
.Font.Italic = True
With .Replacement
.ClearFormatting
.Text = "<i>^&</i>"
.Font.Italic = False
End With
.Execute Replace:=wdReplaceAll
.ClearFormatting
.Font.Underline = True
With .Replacement
.ClearFormatting
.Text = "<u>^&</u>"
.Font.Underline = False
End With
.Execute Replace:=wdReplaceAll
End With
Next
Set wdDoc = Nothing
Application.ScreenUpdating = True
End Sub

Read other 12 answers
RELEVANCY SCORE 82.8

I have written several documents and forgot to save them in the correct
plain text format. Now ehen I try to open these documents they come up in a long unrecognizable form. IIs there any way to convert these files to a regular readable "text" format??? Thanks!

Yart
 

A:Format from ODT text to just plain text

Load them into the original program that created them (OpenOffice) and Save As...
 

Read other 3 answers
RELEVANCY SCORE 82.4

I have extracted data via sql from one application and need to upload it into a newer version of the same testing software. The problem: The data from the older version uses html tags for all formatting, when uploading the test cases to the new version, the tags load as literal text.

What I need is the formating to upload as it was formated within the older application.

Can anyone help? I am not a programmer.

Thank you.
 

Read other answers
RELEVANCY SCORE 82

I've got several hundred word documents that I need to do some formatting on. I need to go through them and insert html tags into the document as per below...

a short bold text line

becomes

a short < b >bold text< / b > line

Minus the spaces of course.

At the moment I really only need bold, italic, underline, and unordered lists.

Does anyone know of the easiest and most efficient way of doing this? (Or some macro code?)

I don't have much experience in Word, but currently looking at writing a macro.

A:insert html tags into word document

Hi,

You could use a macro like the following. It processes all file in the selected folder.

Code:
Sub UpdateDocuments()
Application.ScreenUpdating = False
Dim strFolder As String, strFile As String, wdDoc As Document
strFolder = GetFolder
If strFolder = "" Then Exit Sub
strFile = Dir(strFolder & "\*.doc", vbNormal)
While strFile <> ""
Set wdDoc = Documents.Open(FileName:=strFolder & "\" & strFile, AddToRecentFiles:=False, Visible:=False)
With ActiveDocument.Range.Find
.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.ClearFormatting
.Font.Bold = True
With .Replacement
.ClearFormatting
.Text = "<b>^&</b>"
.Font.Bold = False
End With
.Execute Replace:=wdReplaceAll
.ClearFormatting
.Font.Italic = True
With .Replacement
.ClearFormatting
.Text = "<i>^&</i>"
.Font.Italic = False
End With
.Execute Replace:=wdReplaceAll
.ClearFormatting
.Font.Underline = True
With .Replacement
.ClearFormatting
.Text = "<u>^&</u>"
.Font.Underline = False
End With
.Execute Replace:=wdReplaceAll
End With
wdDoc.Close SaveC... Read more

Read other 9 answers
RELEVANCY SCORE 80.4

Right now, clicking bold gives me the html tag for bold. I have no idea how I managed to turn on this... feature.

Could someone tell me how to turn it off? Thank you!
 

A:MS Word 2000: clicking bold is giving me html tags--help?

Try this, don't know if it will work or not but go to tools, options and on the view tab make sure there is no tic in the Field codes.

Second check the view you are in. Sounds like you are in viewing the htm source as listed under view.

Are you seeing all the htm tags or just the one for bold?
 

Read other 2 answers
RELEVANCY SCORE 79.6

I've noticed that IE doesn't word-wrap plain-text documents. Is there a way to make it so?

Example: http://www.textfiles.com/adventure/adventhint.txt

Read other answers
RELEVANCY SCORE 79.2

I want to create marco in Word which will remove text between 2 tags throughout a document, for example

{begin tag}
This is the text to be removed.
{end tag}

The tagged text will appear throughout a large document and will have multiple instances where it needs to be removed.

These tags will always be the same and the text needs to be deleted between the 2 tags. This will allow me to maintain 2 different versions of a similar report in one document and generate 2 final reports with a macro.

Any ideas if this can be done and if so how?

thanks, Matt

ps Using Word 2007

A:MS Word Marco Help - Removing text between tags

If I have understood correctly you might find this approach easier
1. Type the document with all the text in it
2. Format the text you want to 'delete' as hidden (Format->Font->Effects and tick 'hidden')
This will hide the text
3. If you want to display the text go to Tools->Options->View and tick 'show hidden' text
Hope that helps
R

Read other 1 answers
RELEVANCY SCORE 76.4

When you visit a web page you can click on view, source, save as text and you can save the html as a text file on your hard drive. Is there any way to do this in some kind of batch program so I can save 100 or more html files as text at a time?
 

A:Is There A Tool Or Macro To Save HTML As Text

HTML files are, by nature, text files.
You are not stating where these files are at, and what kind of access you have and what kind of protocol(s) you can use to get at them.

I assume you want to use the http protocol to snag them off of a network somewhere.
If so, take a look at wget. I think it will do what you want.

-Ken
 

Read other 1 answers
RELEVANCY SCORE 74.8

I have done some different stuff lately with macros in word and powerpoint - I was wondering if anyone has set up a text box and assigned it a VAR???? Ultimately, I would like to be able to open an existing PPT, assign some of the text boxes on each slide a var and based on what i assign them - the macro would parse out the text boxes into an HTML format, including the formatting of the text (bold, italic, etc - even bullet lists). Can someone help???
Red
 

Read other answers
RELEVANCY SCORE 73.2

Everything was working OK up to a couple of weeks ago. Suddenly, whenever I receive an email in HTML, it opens as a text email, with HTML code, no visuals, etc.

Charter.net is my email server, and I use Outlook 2003 as my email client. Both of these exhibit the same problem. I am using AVG Free Edition 8.0.100 for antivirus. When I open the AVG interface it shows Email Scanner "Active", but when I open the Email Scanner, the "Scan Outgoing" and "Scan Incoming" options are not checked.

I am not aware that I changed any email settings to cause this problem to occur.

Any ideas?
 

Read other answers
RELEVANCY SCORE 71.6

HTML file for reproducing:
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<label for="pet-select">Choose an item:</label>
<select name="list" id="selectId">
<option disabled value="text hello">Item 01</option>
<option value="item02">Item 02</option>
<option value="item03">Item 03</option>
<option disabled="Redundant value" value="item04">Item 04</option>
<option value="item05">Item 05</option>
</select>

<br>
<button id="btnId" onclick="getInfo()">INFO</button>
<br>
<br>
<div id="resultId">RESULT</div>

<script>
function getInfo(){
var selectCtrl = document.getElementById('selectId');
var options = selectCtrl.options;
var textCtrl = document.getElementById('resultId');

for (var i = 0; i < options.length; ++i){
var option = options[i];
var tmpTxt = '\n//=====\n';
tmpTxt += 'option.attributes: ' + option.attributes + '[' + i + ']\n';
tmpTxt += 'option.text = ' + option.text + '\n';
tmpTxt += 'option.disabled = ' + option.disabled + '\n';
tmpTxt += 'option.hideFocus = ' + option.hideFocus + '\n';
tmpTxt += 'option.spellcheck = ' + option.spellc... Read more

Read other answers
RELEVANCY SCORE 71.6

I continually get the same idiotic ad which is formatted as a jpg image; that's how it gets by the filters; search words don't affect it. 20 of them a day, all the same message, all with different subject headers, but always the same message.

I've been told that if I change my mail format to text rather than HTML, I will avoid getting a lot of spam.

I have Outlook 2002 from Office XP suite, with XP home as my os. is this a good idea, to change to text format? If so, how do I do it? there's a lot on messge formats in the online help, but it's not clear how to set it up to just receive in text, not send.
 

Read other answers
RELEVANCY SCORE 70.8

OMG!!

I am simply trying to search and replace a word in a document to the same word, but a different color. I tried the auto record macro but it does not work. The seach and replace does work when normally editting the text, but the macro will not record BOLD or COLOR changes...why?
this is some of what i have.
Code:

Selection.Find.ClearFormatting
Selection.Find.Highlight = False
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Highlight = False
With Selection.Find
.Text = "MoveL"
.Replacement.Text = "MoveL"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
 

A:Word Macro Color Text

Read other 16 answers
RELEVANCY SCORE 70

New to this forum, so just gonna say hi first. Hi lads... and lassies!

Now over to the serious stuff.

Background:
I had Windows XP Pro SP2 installed, and then i did the huuuge mistake to install Vista Ultimate. Got annoyed and reinstalled XP Pro SP3.
I backed up my files before goin back to XP on an external HD..
And when I copied back the files to the pc I saw, to my horror, that everything looked ok. But when I try to open text documents, it's just garbled text. Looks like this:

%1Pks̐4ħr&gA*t
:q1[_ծVE$I'-Rt"xO'#YX)q2aKI:3
dF؜`Ing^,JKVd6_x+|Jj}I*yuN6 3ouHr5^u&c t
 El8r/H'q|XnxI

Every single document looks like that, rtf files, txt files, word documents and so on. And I've tried to open them and converting to different codings in word and so on (UTF, ANSII and what not). Nothing works.
And then I saw, when I was gonna import my bookmarks in Firefox that I saved before I went back to XP from Vista, that those html files also are full of garbled text..

I looked around on google, and can't find anything about it.. I would greatly appreciate some help. Every single text document, which is quite a few, is messed up... And some of them, I... Read more

A:Help, can't read any text, html or word files...

Read other 11 answers
RELEVANCY SCORE 70

Was wondering if anyone could offer a bit of help on this one - it's been a while since I've worked on macros and I'm struggling to find anything close to this online.

I've got a whole bunch of documents that contain text strings, such as ~[name], ~[gender] etc. These letters are being migrated to a new system that uses MS Word mail merge and as such, I need to convert these from just text place holders into Mail Merge fields. Macroing turning the document into a MM is easy, but it's the replacement I'm having an issue with. They map across to different things so I appreciate I'd have to set what each one would map to, but I'm having trouble since Find and Replace won't insert mail merge fields.

So for instance, I might want to replace all instances of ~[gender] in document with a proper mailmege field of <<sex>>, and then repeat that for 30 or 40 other fields in the letters.

I appreciate this is a bit of an ask, but if anyone has a sec I'd really appreciate it

Cheers.
 

Read other answers
RELEVANCY SCORE 70

I am trying to write a macro that would will go through my document and delete all the paragraphs that between two words "(CSR)" and "(CSO)". Currently I have to go through and manually do this, which for documents of over 200 pages can mean deleting 10,000s of paragraphs.

I also need to delete all paragraphs that contain the phrase " Type of Company:"

Any help would be appreciated.

 

A:Macro to delete text Word 2007

Read other 6 answers
RELEVANCY SCORE 70

Ok here goes, I know how to create macros and even write them. But, Specificly, is there a way to create a macro that will delete all the text in a document (in MS Word)but not the cells or text in certain cells? I know this isn't an easy one. Many thanks to those who try. T out
 

A:Solved: Word: Need Macro to Clear Most Text, but Not All.

Read other 7 answers
RELEVANCY SCORE 70

We commonly use one of the following placeholders to indicate something to check before completing a document. I would like to build a macro that is initiated when printing or saving that searches for:

? and red text and highlighted text.

I want it to start searching at the beginning of the document and let the document author modify the text or click Next - as he could if the Find routine was run from the drop-down menu.

Can anyone suggest the right code?
 

Read other answers
RELEVANCY SCORE 69.6

Not sure I am in the right forum, but here goes. I have a 24 page word document that was saved as a word document. I need to post this on a web site, but the format changes and I don't want retype the whole thing. I am told I need to save it in html format, but it does not work. Can anyone help. Thanks.
 

A:Copy word document to HTML format

Hi,

What version of MS Word

DO you have all the options installed. Save as HTM may be a selectable option during the installation of MS Word.

What happens when you use the "save as HTM" option Any messages on screen, any prompt for a location to save the file.

What error message(s) do you get.

I've just tried this with a Word XP document. The "save as htm" option allowed me to save a copy of the document as filename.html in the same folder by default. The file opened in IE and Opera quite normally.

hth

Ceri
 

Read other 3 answers
RELEVANCY SCORE 69.2

Hello,

I am looking to prepare a report comprised of docuemnts sent to various units of the business. All units were instructed to use 'Track Changes' in Word, and I would now like create a Macro that will only reject changes the correspond to formatting (ex. font size, spacing, etc.).

I have a macro that was created previously for similar documents, but was not properly tested on documents that had a large number of changes. Now running the macro with documents completely freezes the file and does not execute as desired. Here is the macro currently being used:

Sub FmtChanges()
Dim revFmtRev As Revision
For Each revFmtRev In ActiveDocument.Revisions
If revFmtRev.FormatDescription <> "" Then
revFmtRev.Reject
End If
Next
End Sub

Since there are many documents and they are all quite long (some exceed 200 pages), it would save a ton of time to use a macro such as this to complete the task.

Thanks a lot for any help you can provide!

AJ
 

Read other answers
RELEVANCY SCORE 68.4

Hello,

I am hoping someone can help me here - I am trying to create a macro that prints Current Page based on specific text. I found script from 3 years ago (on this forum) that works nearly perfectly for us with only minor formatting adjustments. I'll post that below, but first want to explain the one change I am trying to make (you'll see I know little about Macros...)

The script below searches in text boxes, I need it to just search the document, not confined to text boxes. We have a series of letters that are generated automatically and then later sent to clients. These are generated in massive numbers, and we only print out the ones that come from our locations (7 in total). Right now we have to eyeball to see which ones we will print, but I know we can build a macro that will do it.

Here is the script I am basing working off of, which I called sort:

(The first part just sets margins to narrow, please ignore, it's the second part where I want to break away from the Text Box requirement and just look at the text within the document, and if it matches, print that page. I appreciate any help with this

Sub Sort()

With Selection.PageSetup
.LineNumbering.Active = False
.Orientation = wdOrientPortrait
.TopMargin = CentimetersToPoints(1.27)
.BottomMargin = CentimetersToPoints(1.27)
.LeftMargin = CentimetersToPoints(1.27)
.RightMargin = CentimetersToPoints(1.27)
.Gutter = CentimetersToPoints(0)
.HeaderDistance = CentimetersToPoints(1.25)
.FooterDistance ... Read more

Read other answers
RELEVANCY SCORE 68.4

I'm trying to create a macro in Word 2010 that will allow me to insert text from file but pauses when it takes me to the specific folder so that I can select which file to insert. I have a folder containing over 50 files from which I want to choose.

I created this macro once from directions I found on line but my macros were recently lost and I'm having to start all over. I can't for the life of me remember the code for the macro and I can't even remember what question I asked to get to the code previously!
 

A:Solved: Word 2010 Macro Insert Text from File

Read other 12 answers
RELEVANCY SCORE 68.4

Word 2003 Macro question:
I have 14 x 320 page word documents (School subject reports) created via
mail merges. At irregular intervals in each document there will be a page
which I wish to delete (the student does not do this subject). There is text
present from the mail merge template, however the is no data inserted into
this page. For example, on the pages I wish to delete the teacher name is
blank.
I have created a macro and attached it to a toolbar so that I can delete the
active page manually as I scroll through the document. However I would rather
have the macro search through the document, and where it finds the string
"Subject Teacher : " with no name next to it, then it can call the delete
page macro I made. However I cannot figure out how to make it search for that
string PLUS the missing teacher name (many different teacher names).
Can anybody help with this?
 

A:Deleting a Word page based on text search macro

I was offered the following solution on another forum. It works very well.
Thanks to Jean-Guy for this.
--------------------------------------------------------------------------------------
Try something like the following. You will need to find a way to determine
the exact string you need to search for when there are no teacher names
(strSearch).

'_______________________________________
Dim strSearch As String
Dim rgeStart As Range

Set rgeStart = Selection.Range

strSearch = "Subject Teacher :" & Chr(13)

With ActiveDocument.Range.Find
.Text = strSearch
Do While .Execute
With .Parent
.Select
With Selection
.Bookmarks("\Page").Range.Delete
.Characters(1).Delete
End With
End With
Loop
End With

rgeStart.Select

Application.Browser.Target = wdBrowsePage
 

Read other 1 answers
RELEVANCY SCORE 68

Sorry if this is in the wrong forum. I couldn't find "software" or "other problems".

I've tried dozens of programs. I've websearched for hours. I now come to you on bended knees.

First problem: I want to be able to set a hotkey, that inserts a pre-defined line of text into any text editor. I want to do a bunch of different ones. Say, ALT+SHIFT+D = [email protected], and ALT+SHIFT+C = I love you too, honey. I want to be able to do this so I don't have to get carpal tunnel typing in the exact same same word or phrase hundreds of times a week. I couldn't find a program that worked like this, or I couldn't figure out how to make it work (like AutoHotKey... I read the first page of their tutorial three times and each time I needed an aspirin afterwards), because I am not a propeller head and thus incapable of wrapping my mind around any language that isn't the king's English. :)

Second problem: I want to be able to copy plain text and paste as plain text, but I do not want to CTRL+ALT+SHIFT+C or WINDOWS+V. Big no. I just want to CTRL+C, CTRL+V like I've done my entire life. Like I've said, I tried a bunch of them, and the few that let you choose the hotkey, for some unfathomable reason pout and stick their noses in the air when you ask them politely to set it to CTRL+C or CTRL+V.

Thank you and have a great week!

Read other answers
RELEVANCY SCORE 68

I've tried dozens of programs. I've websearched for hours. I now come to you on bended knees. First problem: I want to be able to set a hotkey, that inserts a pre-defined line of text into any text editor. I want to do a bunch of different ones. Say, ALT+SHIFT+D = [email protected], and ALT+SHIFT+C = I love you too, honey. I want to be able to do this so I don't have to get carpal tunnel typing in the exact same same word or phrase hundreds of times a week. I couldn't find a program that worked like this, or I couldn't figure out how to make it work (like AutoHotKey... I read the first page of their tutorial three times and each time I needed an aspirin afterwards), because I am not a propeller head and thus incapable of wrapping my mind around any language that isn't the king's English. Second problem: I want to be able to copy plain text and paste as plain text, but I do not want to CTRL+ALT+SHIFT+C or WINDOWS+V. [<Removed link by Moderator - ETAF> I just want to CTRL+C, CTRL+V like I've done my entire life. Like I've said, I tried a bunch of them, and the few that let you choose the hotkey, for some unfathomable reason pout and stick their noses in the air when you ask them politely to set it to CTRL+C or CTRL+V. Thank you and have a great week!
 

A:Two things: CTRL+C plain text, and hotkey to insert text?

i have removed the link - as normally this would be considered spam - not sure why you posted the link
 

Read other 3 answers