+ Reply to Thread
Results 1 to 29 of 29

Cannot Stop Scrolling

  1. #1
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Cannot Stop Scrolling

    I have a workbook that records the scores for a Quiz Night. One of the worksheets displays the current scores in ranking order. I use this worksheet (see attachment) to project on to a screen for the audience. There can be up to 20 teams and so the results are scrolled so that the full list can be seen by the audience. This is the macro that does this.

    Please Login or Register  to view this content.
    To stop the scrolling I can use the Ctrl-ScrLk key combination on my main computer which has a full keyboard. However, I use a laptop computer for the Quiz competition and the keyboard does not have a ScrLk key. Consequently I cannot stop scrolling using this key combination. I have tried displaying the onscreen keyboard (which has a ScrLk key) but the Ctrl-ScrLk key combination does not work. Any advice would be very much appreciated.
    Attached Images Attached Images
    Last edited by kencoburn; 04-05-2022 at 07:19 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    Do you want to be able to adjust the scroll on-the-fly?

    Go under the developer -> properties -> (sheet properties) "Scroll Area" (set it from the top left to bottom right active cells, i.e. $A$1:$G$20), that will prevent you from scrolling out of those bounds.

    .scrollarea is the property for the "worksheets" class, and you can integrate a dynamic scroll area if you want it to be automated.

  3. #3
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Thanks for your prompt response. I inherited the workbook and so I am not familiar with the VBA coding
    for the scrolling of the scoresheet. I am a relative novice for coding and so I do not understand your
    advice (my problem not yours). The number of teams can be between 1 and 30(max) and so I hide the rows
    for those teams not needed. How would this work for your suggested solution?

  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Cannot Stop Scrolling

    Do you know how long you want it to scroll for? As written it scrolls from top to bottom and back again, then repeats 10000 times unless cancelled. It would be quite easy to add in either an amount of times to scroll up and down, or a time limit, if that's what you want to do?

  5. #5
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    I use the scrolling function after each round of the quiz. I would be happy to set the scrolling time
    for a set period (say 2 minutes). If I need to I could extend the scrolling time by clicking on the
    scroll button again.

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Cannot Stop Scrolling

    Try this then. I've put the new bits in red and removed a couple of redundant lines.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Many thanks, its getting late and so I will give that a go tomorrow and let you know how I got on.

  8. #8
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Thanks for your help - that works. I modified your suggestion to provide
    an adjustable value for the time that the scoresheet scrolls (rather than
    a fixed 120 seconds)

    Please Login or Register  to view this content.
    I have uploaded the modified workbook so you can see how it works.

    To simplify the use of this workbook for someone who is not too familiar with its use,
    I would rather use a macro that I could attach to a button on the the Summary worksheet
    that does the same as the Ctrl-ScrLk key combination. I tried to record a macro to
    achieve this but as you will see from the Scroll_Stop macro it did not work (no code).
    Do you know the code I could use?
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Cannot Stop Scrolling

    It might be possible, but I don't know how to let a user press a button to stop a macro. You could for example get a MsgBox to pop up after each iteration and/or time period asking whether you want to keep scrolling?

  10. #10
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    I've *replaced the original button with a toggle button that determines whether or not the sheet will scroll.

    code (below) & I've also reuploaded the excel workbook with the toggle button. I tested the solution, and it works well. Sorry I misunderstood your original question.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by carlmon; 04-06-2022 at 08:07 AM. Reason: more information

  11. #11
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Nearly there! When I toggled the Scroll button On it started to scroll but when I toggled back to turn scrolling off it reset the list but continued to scroll. Hopefully there is a simple fix for this problem.
    Thanks again for your assistance.

  12. #12
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    Hmm, try this out (attached). I modified the code section where it checks if the scroll option is on.

    Note: While the button says "Scroll on" it should run for the defined period of time, while the button says "Scroll Off" the document won't scroll. If you want to scroll again, click the button on and off (you may want to set it back to infinite scrolling, and use the toggle button to determine whether its on or off).
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    Disregard my last post. I modified your original code & it works perfectly now. I didn't realize that the scrolling was messed up - I saw the sheet moving and thought it was okay.

    I had to adjust the "D27 value" on the live score sheet to meet the condition to scroll - not sure why it's constrained by a random team's score, but I'm sure you're familiar with that condition.

    Please see attached. Thanks.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    I saved the file under a different name but the macros still reference the previous version. That appears to have prevented the Sort button from working correctly
    (it scrambles the names). I have uploaded the file with the new filename so that you can see what happened. Also, the scroll function did not stop until I toggled
    the scroll button. The original worksheet scrolled to the bottom of the names and then stepped back to the beginning. Would it be possible to retain the functionality
    of the original file and add the toggle function for scrolling? Sorry to persist - perhaps I have not made myself understood.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    I have also attached the original workbook for comparison of the functionality. The only thing that did not work was not being able to cancel the scrolling using the Ctrl-Scrlk key function because the laptop keyboard does not have the ScrlLk key.
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    Quote Originally Posted by kencoburn View Post
    I have also attached the original workbook for comparison of the functionality. The only thing that did not work was not being able to cancel the scrolling using the Ctrl-Scrlk key function because the laptop keyboard does not have the ScrlLk key.
    Thank you! I was about to ask for the original... I couldn't get any of the above codes to loop back to the start. I'll integrate the toggle button into your original workbook

  17. #17
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    It's working exactly how you'd like it (I hope)!! Let me know if it works for you :D
    Attached Files Attached Files

  18. #18
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    and sorry, did you position of the scroll to remain where it is when you toggle the scroll off? I can make a change that will keep the position instead of restarting from the top

    *I've edited so when you toggle scrolling off then the list stays where it was at, and when you toggle it on again, the list starts at the top. I will upload it here if you want it.
    Last edited by carlmon; 04-06-2022 at 12:55 PM.

  19. #19
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    When I toggle the scrolling off I want the worksheet to go back to the top of the list. Also I don't want the scrolling to continues past the list of players. The original workbook will show you how it worked and was able to account for hiding any rows of the 30 that were not taken by players. The values in the cells below the list of players allowed me to adjust the number of rows that were scrolled.

    Just a thought. Is there not a macro that could be written that does the same function as Ctrl-ScrLk? As I said earlier, I tried to record such a macro but ended up with a blank function?

  20. #20
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    I'm not sure you're running the macro I sent back to you. When I hit scroll on, and once the list ends, it bounces back and starts scrolling the opposite way - I set it to 1 Visible so it will continue to scroll until only 1 team is showing -------------


    However, I also assigned a macro to (CTRL+SHIFT+S) to stop all active macros.
    Attached Files Attached Files
    Last edited by carlmon; 04-06-2022 at 01:45 PM.

  21. #21
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Thanks, I must have downloaded and run an earlier file. I will give it another go tomorrow.

  22. #22
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Fantastic - everything works as intended. Many many thanks for your help.
    Last edited by kencoburn; 04-07-2022 at 05:09 AM.

  23. #23
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,246

    Re: Cannot Stop Scrolling

    A slightly different solution (or even two).
    If all visible rowss fit on the screen, there will be no scrolling. There is no definition of the number of visible rows. They are calculated by macro.
    Ctrl+w breaks the macro.

    I don't think it's a better version. Just different.

    Artik
    Attached Files Attached Files

  24. #24
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    I like the improvement in determining the number of visible rows (if the numbers of teams cannot be displayed on one screen). Version 2 is probably the easiest for the novice user - it saves the novice user having to input number of players and number of visible rows.

    The comment in the macro states 30 secs timing before it stops scrolling. I changed the "Scroll Time (Seconds) t0 60 and this extended the scrolling period. Was this your intention?

    There are numbers to the right of the table - can I remove these numbers?

  25. #25
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,246

    Re: Cannot Stop Scrolling

    I will answer YES to the last two questions.

    Artik

  26. #26
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Thanks again, you have been a great help. I inherited the original Quiz spreadsheet and needed help because I only have a basic knowledge of VBA.

  27. #27
    Valued Forum Contributor
    Join Date
    10-12-2021
    Location
    CT
    MS-Off Ver
    365
    Posts
    462

    Re: Cannot Stop Scrolling

    I tried to help; sorry I missed the mark!

  28. #28
    Forum Contributor
    Join Date
    02-24-2008
    Location
    UK
    MS-Off Ver
    2012 and 2016
    Posts
    123

    Re: Cannot Stop Scrolling

    Just to finish everything off in case it is useful for anyone else, I have uploaded
    the final version that I will use for our Quiz Night. Many thanks to those who
    contributed to getting my original workbook to the more user friendly version.
    Attached Files Attached Files

  29. #29
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    257

    Re: Cannot Stop Scrolling

    Did you manage to get this resolved?
    Last edited by PrizeGotti; 04-08-2022 at 07:55 AM.

+ 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. Stop Scrolling
    By victorjesse in forum Excel - New Users/Basics
    Replies: 16
    Last Post: 01-03-2012, 08:01 PM
  2. Stop Scrolling?
    By aldawson38 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 12-19-2011, 03:23 AM
  3. How to stop scrolling
    By bengaluru in forum Excel General
    Replies: 2
    Last Post: 08-06-2009, 12:40 PM
  4. Stop scrolling
    By ledzepe in forum Excel General
    Replies: 5
    Last Post: 04-02-2007, 01:35 PM
  5. How do I stop the scrolling?
    By lady digitalvideo in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-07-2006, 11:08 PM
  6. Stop scrolling
    By gottahavit in forum Excel General
    Replies: 1
    Last Post: 11-08-2005, 11:35 AM
  7. stop the scrolling in VBA
    By mowali in forum Excel General
    Replies: 0
    Last Post: 04-07-2005, 04:55 PM
  8. [SOLVED] scrolling won't stop
    By orfan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

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