+ Reply to Thread
Results 1 to 11 of 11

Follow hyperlink and get date?

  1. #1
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Follow hyperlink and get date?

    Good Morning All.

    I need a macro to fire up on workbook open (I think) .

    The names in column “A” on sheet Crew Names are hyperlinks to row “2” on sheet Crew Shares.

    At the bottom of each column (Crew Shares) from “G:BZ” is a SubTotal which moves down with each new entry.

    What I would like is,:-

    In column “C” adjacent to EACH name in column “A” on the CREW NAMES sheet, the Date (from Crew Shares) of the latest entry above the subtotal row.

    In essence it is the last date each person has worked.

    Also
    If the date is older than 18 months from TODAY the font should be Bold/Red.


    See Example Last Entry.xlsm


    TIA
    Keith
    Last edited by kjg; 08-13-2014 at 05:18 AM. Reason: More details added

  2. #2
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Re: Follow hyperlink and get date?

    Sorry to all who have looked, I ment to remove existing macros.

    If when looking you get a runtime error just "End"

    Once again guys sorry.

    Keith

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Follow hyperlink and get date?

    hi Keith, option, please check attachment
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Re: Follow hyperlink and get date?

    Hi thanks for your reply and sorry for the delay in me answering you.

    I have looked at the file you attached but get a runtime error 1004 "method rows of object_global failed.

    When I select "debug" the line below is highlighted:

    lrow = crew_names.Cells(Rows.Count, 1).End(xlUp).Row

    If I select "end" I seem to have the required result, but, only for the first eight people.

    Regards,
    Keith

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Follow hyperlink and get date?

    try to change this line:

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Re: Follow hyperlink and get date?

    Good Morning,

    Thank you for the code change. With this change it appears to work correctly.

    My only concern is that although the code is in the workbook open event, it would normally be in ThisWorkbook (I think) it says YoaEieaa with characters above each letter. Is this likely to cause problems?

    ThisWorkBook.JPG

    Also, is there any chance, that now it is working as expected, you could put in some comments so I may try and understand how it does what it does.

    Thank You,
    Keith

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Follow hyperlink and get date?

    ThisWorkbook being unreadable issue corrected, comments added
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Re: Follow hyperlink and get date?

    OOPs, same runtime error as previous only this time on line:-

    icol = Range(subaddr).Column

    Regards
    Keith

  9. #9
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Follow hyperlink and get date?

    change this to:

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Re: Follow hyperlink and get date?

    Thank you for the revision, it’s probably easy “when” you know how, I have a l o n g way to go yet.

    Everything seems to be working now as expected, so I will mark as solved.

    Thank you for your time and patients,

    Keith

  11. #11
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Follow hyperlink and get date?

    you are welcome Keith

+ 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. Follow hyperlink
    By nazimscr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2009, 03:56 AM
  2. Help with Follow Hyperlink VB Statement
    By Ben Matthews in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2009, 12:09 PM
  3. [SOLVED] follow hyperlink?
    By JethroUK© in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2006, 04:55 PM
  4. [SOLVED] follow hyperlink?
    By JethroUK© in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-05-2006, 04:55 PM
  5. follow hyperlink?
    By JethroUK© in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-05-2006, 04:55 PM

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