+ Reply to Thread
Results 1 to 9 of 9

Go to today's date

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Go to today's date

    Hello,

    I have a spreadsheet that has got 1st 2 rows for heading, 1st column frozen and row 3 has got dates for whole year 2017.

    What I want is:

    1. When you scroll horizontally, the heading/title should remain frozen and doesn't move.
    2. Whenever I open this spreadsheet, it automatically take me to today's date, every time I open it, i have to scroll it which is frustrating and I am sure there must be some simple solution to that.


    Many thanks.
    Attached Files Attached Files
    Last edited by KamranMustafa; 03-07-2017 at 06:31 AM. Reason: including attachment

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Go to today's date

    Not everyone will open files on file sharing servers so you are better uploading to the forum.

    That said, you could use a Workbook Open event handler and, within that, use Application.Match and Application.GoTo to locate the cell with today's date and scroll to it.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Go to today's date

    I tried to attach it, the attachment button is not working. It doesn't show anything when I click it, tried with google chrome and firefox, didn't work

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Go to today's date

    The Paperclip icon does not work.

    To attach a file, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  5. #5
    Registered User
    Join Date
    01-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Go to today's date

    There is it, attached it.
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Go to today's date

    Copy the following code to a standard module:

    Please Login or Register  to view this content.
    Now add this code to your ThisWorkbook class module:

    Please Login or Register  to view this content.
    Save, close and re-open the workbook.

  7. #7
    Registered User
    Join Date
    01-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Go to today's date

    Awesome, that worked! Thanks a million!

    Only have one query left now, frozen top title

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Go to today's date

    I have to be honest and say I don't know you're going to do that.

    I thought maybe a Text Box, not moving or resizing with cells might have worked but it didn't (at least, what I tried didn't.)

  9. #9
    Registered User
    Join Date
    01-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Go to today's date

    I have tried placing a text box, I just want a static title when I scroll through dates horizontally, trying to get it done in someway.

+ 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. Replies: 10
    Last Post: 09-06-2023, 08:19 PM
  2. Replies: 5
    Last Post: 12-01-2015, 02:36 PM
  3. [SOLVED] Sumif from date (Today or greater than today) to last date
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2015, 03:53 AM
  4. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  5. condit. format: If date in cell = today, display "Today"
    By ratkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:33 PM
  6. Replies: 6
    Last Post: 08-08-2011, 08:32 AM
  7. create a macro to alert me if today's date is within 5 days of expected delivery date
    By ashmcclure in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 09-25-2008, 05:51 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