+ Reply to Thread
Results 1 to 7 of 7

Scroll Screen to First Date in List

  1. #1
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Scroll Screen to First Date in List

    Would appreciate help with a routine that will move/scroll the screen to the first date in a list of dates triggered by a dropdown selection.

    Attached is a sample wkbook where the sheet has Freeze Panes applied so the headings will remain visible. When the user selects a month name in the dropdown, the screen will scroll to the first date found of that month. And, the first date may not be the first day of that month (i.e. 2/5/16, 5/5/16).
    The list of dates will extend down beyond the extent of the sample range shown as dates will be added to the list.

    Let me know if this description is not sufficient.

    Thank you,
    Delain

    (There are no macros currently in the xlsm; just saved in that format anticipating a workbook code event.)
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Scroll Screen to First Date in List

    Maybe :

    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Scroll Screen to First Date in List

    Your code works great if I use a command button to activate after selecting the Month in the dropdown.

    Now, how would I wrap this with a Change Event so that the code runs when the user selects using the dropdown?

    Where did I get it wrong?
    Please Login or Register  to view this content.
    Thank you,
    Delain

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Scroll Screen to First Date in List

    You are welcome.

    You should put the code in Worksheet_Change() event, not Worksheet_SelectionChange() event :
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Scroll Screen to First Date in List

    Excellent; just what we needed!

    Thanks for your quick attention to this.

    Delain

  6. #6
    Forum Contributor delaing's Avatar
    Join Date
    07-16-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Scroll Screen to First Date in List

    Excellent; just what we needed!

    Thanks for your quick attention to this.

    Delain

  7. #7
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Scroll Screen to First Date in List

    You are welcome. Thanks for marking the thread as solved and for the the rep. points.


    Regards

+ 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] Part screen vertical scroll
    By Lewster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2015, 01:14 PM
  2. add a freeze screen with scroll
    By ammartino44 in forum Excel General
    Replies: 0
    Last Post: 07-31-2014, 07:12 PM
  3. [SOLVED] When Selecting a cell, also scroll the screen?
    By NewYears1978 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2014, 11:46 AM
  4. vba to scroll screen of each worksheet to lowest row below row 2
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2012, 12:52 AM
  5. Scroll image across screen
    By Chard in forum Excel General
    Replies: 1
    Last Post: 09-22-2007, 03:11 PM
  6. Scroll the screen view with the scroll bar
    By avbs in forum Excel General
    Replies: 1
    Last Post: 06-25-2005, 12:05 PM
  7. Button to stay on screen as you scroll
    By fred in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2005, 09:06 PM

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