Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-26-2023, 03:24 AM
ctviggen ctviggen is offline Pasting in text like Notepad (not Paste Special) Windows 10 Pasting in text like Notepad (not Paste Special) Office 2016
Advanced Beginner
Pasting in text like Notepad (not Paste Special)
 
Join Date: Feb 2021
Posts: 54
ctviggen is on a distinguished road
Default

For me, this does not work, in that the numbered list of the style that I copy does not retain the number when pasted:


Code:
    Set oRng = Selection.Range
    Options.PasteOptionKeepBulletsAndNumbers = True
     oRng.PasteSpecial DataType:=wdPasteText
It seems like it should work, but it does not. In other words, when I copy:
1. Some text...
When I paste using the above code, what gets pasted in is:
Some text...

So, that means I have to add back in the numbering.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Notepad to Word : Pasting Specific text ie between any two blank line from notepad to word SMehta Word VBA 27 02-03-2021 03:34 AM
Pasting in text like Notepad (not Paste Special) Copy text with tab at start of line and paste to Notepad JohnTurnbull Word 5 08-27-2017 11:17 PM
need a shortcut for paste special link unformatted text noetic76 Word VBA 2 06-29-2014 06:40 PM
Pasting in text like Notepad (not Paste Special) Paste Special: Copy and Paste Formatting Only? tinfanide Word 6 03-06-2013 12:21 AM
Pasting in text like Notepad (not Paste Special) Paste Special Unformatted Text kenwpaul Office 2 02-25-2011 04:53 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:57 PM.


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