+ Reply to Thread
Results 1 to 5 of 5

Copy Hyperlink in form to Worksheet

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Copy Hyperlink in form to Worksheet

    Hi, hope you will all be patient with me.
    Redone below
    Last edited by geoff_5956; 06-05-2010 at 03:08 AM.

  2. #2
    Registered User
    Join Date
    06-03-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Copy Hyperlink in form to Worksheet

    Sorry for the previous mistake in posting, hopefully this is the correct form to post in, as I said I am a beginner at VBA but also at forums - please be patient

    Hi, hope you will all be patient with me.
    I have been teaching myself how to use VBA / Forms in Excel and so far have created my very first "application".
    One problem is all I need to solve - how to transfer on save the hyperlink's I have found / created in the form and have them stay as hyperlinks in the worksheet I send them to.
    At the moment I get is the "text" of the link and not the link itself.
    The code I am using to place them is
    To collect the "link" I use
    Please Login or Register  to view this content.
    This runs for four cells (Attach1 to Attach4) - each with their own button - everything seems fine in this collection part but when I go to save the form details as below I have problems with the hyperlink part not being there - just the text.
    Please Login or Register  to view this content.
    heaps of other cells the same - 57 separate past to worksheet fields (didn't include them all here
    Please Login or Register  to view this content.
    Hope you can help
    Last edited by geoff_5956; 06-05-2010 at 03:14 AM.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy Hyperlink in form to Worksheet

    Leith's hyperlink code tests if the cell contains a hyperlink,so
    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    In future please edit the original post,don't just duplicate it leaving the original. This only adds to the post count & sometimes delays answers
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    06-03-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy Hyperlink in form to Worksheet

    Hmmm - I think it must be me but it still isn't playing fair
    When I tried either of these methods I got a RUNTIME ERROR 424 "OBJECT REQUIRED"

    In the de-bug it tells me its in the second line of the code for both these.

    Please Login or Register  to view this content.
    and the second

    Please Login or Register  to view this content.
    Would it help if I attached the file?

    Thanks for any ideas you might have

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy Hyperlink in form to Worksheet

    Attach the workbook

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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