Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-05-2022, 04:38 AM
Testeris Testeris is offline Make hyperlink in macro using Clipboard Windows 10 Make hyperlink in macro using Clipboard Office 2016
Novice
Make hyperlink in macro using Clipboard
 
Join Date: Nov 2022
Posts: 8
Testeris is on a distinguished road
Default

I guess my VBA misses smth. See another problem, maybe related. Recorded it, but when running, error.



Sub aMakePlainText()
'
' aMakePlainText Macro
'
'
Selection.HomeKey Unit:=wdStory
Selection.WholeStory
Selection.Cut
Selection.PasteAndFormat (wdFormatPlainText) '<-- error here
Selection.HomeKey Unit:=wdStory
End Sub


Stops at PasteAndFormat, error 4198
Reply With Quote
 

Tags
getfromclipboard, hyperlink, macro error



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make hyperlink in macro using Clipboard Copy Specific Text String To Clipboard At End Of Macro et_33 Excel Programming 8 10-11-2022 06:24 AM
WORD MACRO COPY/PAST from clipboard rachidlea Word VBA 0 11-16-2021 09:38 AM
Macro for copying in clipboard more than one selected text ghostwhisperer86 Outlook 0 03-31-2019 07:47 AM
Make hyperlink in macro using Clipboard How to extract selected hyperlink address to clipboard? poetofpiano Word VBA 8 02-18-2018 07:17 PM
Add Hyperlink in Visio that when clicked copies something to your clipboard MoHyB Visio 0 11-10-2017 08:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:25 AM.


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