Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
Hello, quick question,
I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
Type 18F
Select the 18 and press CTRL+Shift+=/+ key (the equal and plus key) Select the whole string 18F Office Menu (Button in top left corner) Word Options Proofing AutoCorrect Options Select the "Formatted Text" options button Type 18F in the Replace Field Click Add Click OK newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
Create a formatted autocorrect entry. Type the 18F as you want it to appear
and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
I mustn't be awake yet as my brain read a completely different answer to
what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
I wonder whether arty, who does a lot of chemistry, writes only about
fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53*am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - *Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty- |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
If he does, the same principles apply.
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Peter T. Daniels wrote: I wonder whether arty, who does a lot of chemistry, writes only about fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53 am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty- |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
It looks like you're both suggesting that his only recourse is to make
dozens of autocorrects for each possible at.wt. + element symbol. Is there a way to make Word realize that in a word that begins wtih one, two, or three digits and is followed by one capital letter and zero or one small letter, the digits should be superscriot? If not as-you- type, then maybe you could give him a macro to run after the whole text has been typed. On Oct 27, 11:20*am, "Graham Mayor" wrote: If he does, the same principles apply. -- Graham Mayor - *Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Peter T. Daniels wrote: I wonder whether arty, who does a lot of chemistry, writes only about fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53 am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty-- |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
Mr. Daniels,
Unfortunately Word's Selection change event does not detect the normal movement of the selection as one types. If the selection is changed from point A to point B with the mouse the event will fire. If the selection moves from point A towards point B was one types it does not :-(. Therefore I don't think it would be possible to detect these patterns as one types. However, as a macro could be fired at anytime and be completely controlled by the user (assigned a keyboard shortcut) it is a relatively simple matter to do what you described. Actually it doesn't have to be very complicated as the user will look at what is typed and decide (do I process or not?). For example this macro could be fired after typing 18F (and before a space) or other like strings. Sub SSNumbers() With Selection .MoveStart wdWord, -1 .MoveEndUntil Cset:="1234567890", Count:=wdBackward If IsNumeric(.Text) And Len(.Text) 4 Then .Font.Superscript = True End If .Words(1).Select .Collapse wdCollapseEnd End With End Sub On Oct 27, 7:03*pm, "Peter T. Daniels" wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Is there a way to make Word realize that in a word that begins wtih one, two, or three digits and is followed by one capital letter and zero or one small letter, the digits should be superscriot? If not as-you- type, then maybe you could give him a macro to run after the whole text has been typed. On Oct 27, 11:20*am, "Graham Mayor" wrote: If he does, the same principles apply. -- Graham Mayor - *Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Peter T. Daniels wrote: I wonder whether arty, who does a lot of chemistry, writes only about fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53 am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty--- Hide quoted text - - Show quoted text - |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
It looks like you're both suggesting that his only recourse is to make
dozens of autocorrects for each possible at.wt. + element symbol. Where do you dream up such utterly false accusations? I don't know why arty's question focused on 18F and specifically the 18. Call me lazy for not trying to guess if you wish. You can even scold me for not being a sensitive sensitive reader like you, for failing to read for content vice context, and my utter inability to intuit what was meant by what was unsaid. I am used to all of that silliness. I answered the man's specific question on one day, moved on to something else, and now find that and you have popped in the next day to accuse me of suggesting that my answer is the only recourse! Such a suggestion was never made. Grown accustomed to your provoked slurs and insults I'll let this one pass. Your suggestion has merit and is addressed in a separate post. Cheers. Peter T. Daniels wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Is there a way to make Word realize that in a word that begins wtih one, two, or three digits and is followed by one capital letter and zero or one small letter, the digits should be superscriot? If not as-you- type, then maybe you could give him a macro to run after the whole text has been typed. On Oct 27, 11:20 am, "Graham Mayor" wrote: If he does, the same principles apply. -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Peter T. Daniels wrote: I wonder whether arty, who does a lot of chemistry, writes only about fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53 am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty-- -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
#10
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
Have you been drinking?
(a) His subject heading says "help in automatic formating for superscripts!!" (note the plural). (b) Both of you explained how to do what he wants to do _for this one specific example only_ -- and he did say "manually changing 18 into a superscript is getting pretty tedious." When you show him how to create an autocorect entry, you show him how to do it for fluorine-19 and carbon-14 and carbon-12 and all the others. Individually. He made it quite clear that he was looking for a way not to have to do it many times. I asked you (both) for a way to do it automatically -- which is about as far as one can get from "accus[ing you] of suggesting that [your] answer is the only recourse." Has your hatred of me _so_ blinded you to the ordinary sense of ordinary English words? (c) Exactly half an hour earlier, you provided a (presumably) perfectly serviceable macro to do what I suggested. Had you been drinking in the last half hour? On Oct 27, 10:29*pm, "Greg Maxey" wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Where do you dream up such utterly false accusations? I don't know why arty's question focused on 18F and specifically the 18. Call me lazy for not trying to guess if you wish. *You can even scold me for not being a sensitive sensitive reader like you, for failing to read for content vice context, and my utter inability to intuit what was meant by what was unsaid. I am used to all of that silliness. I answered the man's specific question on one day, moved on to something else, and now find that and you have popped in the next day to accuse me of suggesting that my answer is the only recourse! *Such a suggestion was never made. Grown accustomed to your provoked slurs and insults I'll let this one pass. Your suggestion has merit and is addressed in a separate post. Cheers. Peter T. Daniels wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Is there a way to make Word realize that in a word that begins wtih one, two, or three digits and is followed by one capital letter and zero or one small letter, the digits should be superscriot? If not as-you- type, then maybe you could give him a macro to run after the whole text has been typed. On Oct 27, 11:20 am, "Graham Mayor" wrote: If he does, the same principles apply. -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Peter T. Daniels wrote: I wonder whether arty, who does a lot of chemistry, writes only about fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53 am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty-- -- Greg Maxey See my web sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips.- Hide quoted text - - Show quoted text - |
#11
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
help in automatic formating for superscripts!!
Have you been drinking?
An unconditional "yes" or "no" question. No. I asked you (both) for a way to do it automatically -- which is about as far as one can get from "accus[ing you] of suggesting that [your] answer is the only recourse. Yes you asked that. You asked it after you wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Which is about as close as one can get to accusing me (safely assuming that in the colleciton "both," I am one of two) of suggesting his only recourse it to make dozens of autocorrects for each possible at.wt. + element symbol. Has your arrogance blinded you to the ordinary sense of a perfectly coherent English sentence? Do you just blabber without thought to what you say or how others will take it? I provided the macro because, despite your regular behavior in this group, I felt that it was a good suggestion. No an excellent suggestion. I will gladly concede that if I had had the time and had thought of it myself that I would have replied with something similar in my original reply. I'm not blinded at all Mr. Daniels. I understand perfectly the unpleasant discord that we bring into this group. Your view that I hate you is just a crutch to help you deal with the unpleasant and unavoidable fact that I won't let your regular misbehavior and unbridled arrogance run rampant and unchallenged in this group. I don't like you and I don't hate you. I don't have to do either to politely get along with you. Change your offensive ways and apologize to this group for your offenses and misbehavior past and present. This is a simple act that will demonstrate your sincerity and commitment. Can you do it? Sure you can! Cheers, Peter T. Daniels wrote: Have you been drinking? (a) His subject heading says "help in automatic formating for superscripts!!" (note the plural). (b) Both of you explained how to do what he wants to do _for this one specific example only_ -- and he did say "manually changing 18 into a superscript is getting pretty tedious." When you show him how to create an autocorect entry, you show him how to do it for fluorine-19 and carbon-14 and carbon-12 and all the others. Individually. He made it quite clear that he was looking for a way not to have to do it many times. I asked you (both) for a way to do it automatically -- which is about as far as one can get from "accus[ing you] of suggesting that [your] answer is the only recourse." Has your hatred of me _so_ blinded you to the ordinary sense of ordinary English words? (c) Exactly half an hour earlier, you provided a (presumably) perfectly serviceable macro to do what I suggested. Had you been drinking in the last half hour? On Oct 27, 10:29 pm, "Greg Maxey" wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Where do you dream up such utterly false accusations? I don't know why arty's question focused on 18F and specifically the 18. Call me lazy for not trying to guess if you wish. You can even scold me for not being a sensitive sensitive reader like you, for failing to read for content vice context, and my utter inability to intuit what was meant by what was unsaid. I am used to all of that silliness. I answered the man's specific question on one day, moved on to something else, and now find that and you have popped in the next day to accuse me of suggesting that my answer is the only recourse! Such a suggestion was never made. Grown accustomed to your provoked slurs and insults I'll let this one pass. Your suggestion has merit and is addressed in a separate post. Cheers. Peter T. Daniels wrote: It looks like you're both suggesting that his only recourse is to make dozens of autocorrects for each possible at.wt. + element symbol. Is there a way to make Word realize that in a word that begins wtih one, two, or three digits and is followed by one capital letter and zero or one small letter, the digits should be superscriot? If not as-you- type, then maybe you could give him a macro to run after the whole text has been typed. On Oct 27, 11:20 am, "Graham Mayor" wrote: If he does, the same principles apply. -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Peter T. Daniels wrote: I wonder whether arty, who does a lot of chemistry, writes only about fluorine-18 (the only fairly stable radioactive isotope, with a half- life of 110 min --wik.), or whether he wasn't looking for a way to automate the typing of _any_ atomic weight before an element symbol. On Oct 27, 1:53 am, "Graham Mayor" wrote: I mustn't be awake yet as my brain read a completely different answer to what had Greg posted - maybe I need another cup of tea? -- Graham Mayor - Word MVP My web sitewww.gmayor.com Word MVP web sitehttp://word.mvps.org Graham Mayor wrote: Create a formatted autocorrect entry. Type the 18F as you want it to appear and select it, then create the autocorrect entry (Word Options Proofing Autocorrect Options) Greg's macro will work for existing documents. newbie arty wrote: Hello, quick question, I would like to have word 2007 automatically recognize 18F and change it to (superscript18)F. I do a lot of chemistry, and manually changing 18 into a superscript is getting pretty tedious. Appreciate any help! arty-- -- Greg Maxey See my web sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips.- Hide quoted text - - Show quoted text - -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
get rid of formating automatic dollar signs for money amounts | Microsoft Word Help | |||
How to disable automatic date formating? | Microsoft Word Help | |||
Automatic Formating | Formatting Long Documents | |||
How do I turn off automatic formating in Word? | Microsoft Word Help | |||
Automatic formating | New Users |