Copy from Formula Bar

Sahak

Well-known Member
Joined
Nov 10, 2006
Messages
1,012
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Hi all,

Sometimes copying from the cell (passwords or links), after pasting does not work.
Is there a macro to copy Formula Bar's contents?
Thank you in advance.
1600795110847.png
 
Is the user selecting a new cell for pasting after the message box?
What is contained in the original cell
- is it a hyperlink formula (=HYPERLINK...) ?
- is an embedded hyperlink where the displayed cell value is the hyperlink address?
- is an embedded hyperlink where the displayed cell value is a friendly name?

Will update tomorrow
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
The scenario is this:
The user should open the link for online payment, in this case: "SPECTRUM"
He pushes the button to run the macro, which copies the text "
1600813146054.png

He activates the web browser & manually (no macro), and doing paste (right-click Paste or CTRL + V)
 
Last edited:
Upvote 0
this works for me
VBA Code:
Sub Copy_Link()
    Dim Txt As String
    If ActiveCell.Column = Range("Clmn_Payee").Column And ActiveCell.Offset(0, 1) = "Y" Then
        Txt = ActiveCell.Offset(0, 2).Value2
        With CreateObject("new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
            .SetText Txt
            .PutInClipboard
        End With
        MsgBox "Please Paste the Copied Link"
    Else
        MsgBox "Wrong Selection, Please Select Payee"
    End If
End Sub
 
Upvote 0
Hi Yongle,

It works for me too. Thank you very much & God bless you. You are the best.
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top