Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2021, 07:27 PM
graverholt graverholt is offline Creating a macro to insert unformatted text Windows 10 Creating a macro to insert unformatted text Office 2013
Novice
Creating a macro to insert unformatted text
 
Join Date: Nov 2020
Posts: 2
graverholt is on a distinguished road
Default Creating a macro to insert unformatted text

I used to have a macro which - when I pressed Alt-5 - inserted an unformatted text.
But now it does not work anymore and I forgot how I made it.


Can someone help me?
Reply With Quote
  #2  
Old 04-14-2021, 08:30 PM
gmayor's Avatar
gmayor gmayor is offline Creating a macro to insert unformatted text Windows 10 Creating a macro to insert unformatted text Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,103
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Do you mean like
Code:
Sub PasteUnfText()
    On Error GoTo err_Handler
    Selection.PasteSpecial DataType:=wdPasteText, _
                           Placement:=wdInLine
lbl_Exit:
    Exit Sub
err_Handler:
    Beep
    Err.Clear
    GoTo lbl_Exit
End Sub
Installing Macros
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a macro to insert unformatted text Macro to write bold and unformatted text in a single cell Snoorelax Word VBA 2 06-27-2018 06:24 PM
Creating a macro to insert unformatted text Pasting as unformatted text VBA Chayes Word VBA 10 02-29-2016 06:17 PM
Creating a macro to insert unformatted text Creating Shorcuts to insert choices of different text Chris W Word 4 01-29-2016 06:43 AM
Creating a macro to insert unformatted text Unformatted text paste macro Ulodesk Outlook 1 07-03-2014 02:03 PM
Creating a macro to insert unformatted text Macro to paste unformatted text Andacar Word 2 01-05-2011 09:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft