+ Reply to Thread
Results 1 to 4 of 4

I am unable to copy a cell containing a hyperlink and place it into a table row

  1. #1
    Registered User
    Join Date
    12-11-2016
    Location
    Barton Upon Humber, England
    MS-Off Ver
    Office 365 Desktop
    Posts
    8

    Angry I am unable to copy a cell containing a hyperlink and place it into a table row

    Hi
    I am new to Excel VBA so be patient with me.
    I have a simple form that I want to create different document hyperlinks for a particular Organization. What I am trying to do is add data to a table that contains:

    - in column 1 the organization id
    - in column 2 a brief description of the document
    - in column 3 a Hyperlink to that document.

    The user will enter the brief description and then click on a button to find the file.
    The code then places the hyperlink into cell C1, it's this hyperlink I want in column 3 of a new row in the table row.
    The form will contain a listbox which will show all entries in the table for the selected Organization, my idea is the user will then select an entry in the listbox which will then open the document.
    Whatever I try replaces all cells in the column of the table with the last hyperlink.
    My last attempt was to do a simple copy and paste and even that put the last hyperlink in all the cells of my table column.
    The frustration thing is, if I do a copy and paste manually it works, but the user will not have access to the sheet outside of the form.

    Can anybody help me please?

    My code so far:
    Please Login or Register  to view this content.
    Last edited by papashep; 11-11-2020 at 05:01 AM. Reason: Forget to wrap my code with #

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: I am unable to copy a cell containing a hyperlink and place it into a table row

    .
    Please WRAP YOUR CODE within the # signs. Hover your mouse over the # sign in the REPLY TO THREAD menu. Clicking the symbol places the
    BEGIN CODE and END CODE on the response form. Place your code between those two symbols.

    Try this :

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-11-2016
    Location
    Barton Upon Humber, England
    MS-Off Ver
    Office 365 Desktop
    Posts
    8

    Re: I am unable to copy a cell containing a hyperlink and place it into a table row

    I replaced the following section of code:
    Please Login or Register  to view this content.
    With:
    Please Login or Register  to view this content.

    And it now works

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: I am unable to copy a cell containing a hyperlink and place it into a table row

    .
    Great ! Glad you have an answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Create a hyperlink to a place in the document using cell contents
    By Stuartzz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2018, 10:53 PM
  2. Replies: 2
    Last Post: 06-23-2018, 12:14 AM
  3. [SOLVED] With Hyperlink formula & vba, I want to copy text of hyperlink to the cell it's linked to
    By Freakytone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2017, 05:46 PM
  4. [SOLVED] Unable to place formula in cell
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2017, 04:07 PM
  5. [SOLVED] How to copy to another place table rows only with non empty values?
    By rcurious in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-01-2013, 05:44 AM
  6. Get hyperlink with place in document from cell
    By danped1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2013, 12:17 PM
  7. Replies: 2
    Last Post: 01-19-2013, 09:13 AM

Tags for this Thread

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