Results 1 to 3 of 3

How to recall a path from clipboard for a macro to use

Threaded View

  1. #1
    Registered User
    Join Date
    08-07-2011
    Location
    Cali, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    How to recall a path from clipboard for a macro to use

    Hello Dear Friends
    I have a very simple Macro Code but want to alter a part of it. i want instead of the line in front of the Address, paste the path from the clipboard. the code is like this:

    Sub Macro1()
    '
    ' Macro1 Macro
    '
    ' Keyboard Shortcut: Ctrl+d
    '
        ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="D:\Test\0157.jpg"
    End Sub
    Thank you in advance
    Last edited by makhtoot; 08-10-2011 at 12:53 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1