Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Macro/VBA Help

Status
Not open for further replies.

GingerR

MIS
Apr 17, 2001
3,134
US
Hi. I still need help on this:
thread68-951088

Thanks--g
 
use a explicit Style. gets rid of all format problems. create new for just this if need 2. use styles.
 
what's explicit style and where do i put it?

thanks--g
 
if i just do Selection.TypeText it will put it in the header as Courier12. If i copy some text that is courier12 and paste it into the header, it becomes Times New Roman 10. I even tried:

Selection.PasteAndFormat wdFormatOriginalFormatting

but it still pastes as Times New Roman even tho the orig sentence is in Courier 12.
 
ok i fixed it. i dont know why but:

when i cut the first sentence, there's a paragraph mark after it. in the code (which i recorded then tweaked) there was a backspace, then a paragraph, then type the last line. i took out the backspace and paragraph, and it works. i guess backspacing for some reason honks up the font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top