+ Reply to Thread
Results 1 to 11 of 11

Auto populate hyperlink

Hybrid View

  1. #1
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    MS365 v2402
    Posts
    21

    Auto populate hyperlink

    Good day to you all, thanks to anyone who takes time to try and help me..

    My problem is related to members of staff applying for overtime shifts:

    I have a column with dates of the month from the 1st down to the 30th etc..
    Along the top of this column is a row with the available shifts listed, i.e 9am to 4pm, 12pm to 6pm etc..
    where the column intersects the row i have a hyperlink which, when the user clicks on it, i want to send an email to one specific email address. The intersection has the word "apply", which is a hyperlink. When its clicked on it automatically opens the users outlook. i have the email address sorted, that auto populates with the relavant recipient but i want the subject field to be populated with the date that corresponds to the row and the shift times. When editing the hyperlink obviously i have put the email address in that i want the emails to go to but i dont seem to be able to link the subject field to a cell reference, based on where the user clicked the apply link.

    any help very gratefully received

    Tony
    Last edited by TonyPhilbrick; 05-17-2014 at 03:37 AM.

  2. #2
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    MS365 v2402
    Posts
    21

    Re: Auto populate hyperlink

    Ok, i'm guessing it's not an easy fix. I have found the following code which is doing partly what i want:

    =HYPERLINK("mailto:your.email@domain.com?subject="&"Overtime request for "&A6,"Apply" )

    A6 = the date. The row it must select from is row A however, i would like it to select cell 6 because i clicked on G6 to apply. If i click on G7 then i would like it to populate with the date from A7. Hope that makes sense.

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Auto populate hyperlink

    =HYPERLINK("mailto:your.email@domain.com?subject="&"Overtime request for "&INDIRECT("A"&COLUMN()),"Apply" )

  4. #4
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    MS365 v2402
    Posts
    21

    Re: Auto populate hyperlink

    Hi Gak, thanks very much for the reply,

    I copied and pasted that formula in, its definitely doing almost what i want, however whichever row i put the code in it always uses A7 as the subject date. Not sure why as theres no direct reference to it, i'm obviously doing something wrong

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Auto populate hyperlink

    Can you upload a sample file?

  6. #6
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    MS365 v2402
    Posts
    21

    Re: Auto populate hyperlink

    Sorry, new to the forums, how do i upload a sample file?


    Book1.JPG

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Auto populate hyperlink

    Click on Go Advanced at bottom right of where you enter a reply, then click on the paperclip. Then add, select, upload and post.

  8. #8
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    MS365 v2402
    Posts
    21

    Re: Auto populate hyperlink

    Ok, hopefully this is what you need.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Auto populate hyperlink

    Oops. My bad. Try
    Formula: copy to clipboard
    =HYPERLINK("mailto:your.email@domain.com?subject="&"Overtime request for "&INDIRECT("A"&ROW()),"Apply" )
    (have changed COLUMN (which was always column G - ie coulmn 7) to ROW, which takes the row number).

  10. #10
    Registered User
    Join Date
    05-17-2014
    MS-Off Ver
    MS365 v2402
    Posts
    21

    Re: Auto populate hyperlink

    That does it... brilliant, thank you very much indeed.

  11. #11
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Auto populate hyperlink

    If your issue has been resolved mark the thread as SOLVED.

    If I have been helpful please click on Add Reputation (* in bottom left of my posts).

+ 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] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  2. Auto-populate from other sheets in a master, than auto total duplicates
    By Melyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2013, 01:48 PM
  3. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  4. Hyperlink to run VBA code using auto fill for =hyperlink
    By chevelle8719 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2010, 02:45 PM
  5. Use dynamic hyperlink to populate cell value
    By allanr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-23-2008, 11:59 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