Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-21-2015, 08:31 PM
Charles Kenyon Charles Kenyon is offline Custom ribbon button or shortcut for a specific function Windows 8 Custom ribbon button or shortcut for a specific function Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,582
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Well, that is what you said you wanted.


The following will paste a hyperlink, but carries other formatting with it.

Code:
Sub PasteHyperlink1()
'
' PasteHyperlink1 Macro
'
'
    Selection.PasteAndFormat (wdFormatOriginalFormatting)
End Sub
' or

Code:
Sub PasteHyperlink2()
'
' PasteHyperlink2 Macro
'
'
    Selection.PasteAndFormat (wdFormatSurroundingFormattingWithEmphasis)
End Sub

Last edited by Charles Kenyon; 04-21-2015 at 08:38 PM. Reason: add second macro
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass Arguments to Function Through Ribbon inagalaxyfarfarawry Word VBA 11 03-25-2022 09:28 PM
Custom ribbon button or shortcut for a specific function Shortcut Key - Ribbon Alt+H RajaGa Word 3 04-17-2015 10:11 AM
Is it possible to add a custom macro button to the FILE tab of the ribbon in excel sbapabck Excel 2 04-11-2014 07:36 AM
How to make a SPECIFIC FONT shortcut button? E922 Word 4 03-18-2014 03:11 PM
Ribbon button - showLabel attribute ignored yiannis.spyridakis Excel Programming 2 06-12-2012 11:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:07 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