+ Reply to Thread
Results 1 to 9 of 9

How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

  1. #1
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    Hello... To everyone...

    I'm working on a database in excel ... (Obvious) ... and i had to increase the height of rows to 90,75 (121px)
    after that it only let me view 2 lines (Rows) at a time (Screens).

    And every time i scroll the mouse wheel, it will jump to 3 by 3 rows, and a need to change the mouse settings to jump to 1 by 1 row (Line),
    i know i can go to control panel => Mouse => Wheels => change parameters of 3 lines to 1.

    OK,... but how to do this without having to go all the times to control panel,
    and if someone else is using this database not have to go through hassle of doing constantly the same operation.

    So i have did a research in how it would be possible to do this with Visual Basic ...
    and i found this;

    http://msdn.microsoft.com/en-us/libr...=vs.60%29.aspx

    and this;
    http://vcpptips.wordpress.com/tag/sp...elscrolllines/

    and in other sites of this type, they mention this type of code must be place in VB-MODULE...?!

    Now, i have no idea in how to use this or how to develop this type of code.

    Can someone help me in this... please.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    i wouldn't let any spread sheet run on a machine of mine that could change system settings like mouse scroll
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    Quote Originally Posted by martindwilson View Post
    i wouldn't let any spread sheet run on a machine of mine that could change system settings like mouse scroll
    Yea... i understand that... It's dangerous, virus, ad-ware, spy-ware, etc.

    But... in a database that is needed to scroll line by line, and it scrolls 3 lines by 3,
    and every time that database is open the user has to go to panel control to change mouse scroll, and when it exit have to go back to set back settings.
    Because to scroll in the web-site it is need to be 3 by 3 its more used.

    It's quite a bit annoyed

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES


  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    Cross posted at Ozgrid as well.

    Looks this chap has cross posted on at least three forum and no telling where else
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    basically in a normal module (in other words not worksheet/workbook/class/userform):
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  7. #7
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    JosephP I thank you very much for your reply.

    I will give it a try then i will feedback about the result.

  8. #8
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    But... First of all... before this thread go furthermore, i have to apologize to all users and moderators of this forum so i may have some peace of conscience.

    When i post this thread i have made the little big mistake of CROSS-POST this same thread in others forums has well.

    This action of mine has by the reason of desperate in quickly get an answer for a work that i had been hand delivered by my class teacher, and it was to be made with limited time to deliver it.

    The unforgivable was... the fact that neither occurred to me to check the forum rules, about using with courtesy the method CROSS-POST.

    This small gap is quite disrespectful to all users who voluntarily devote their time to help those who little or nothing understand of this matter.

    So... this will be has a future example to all of those, who someday decide to do something similar, just don't, the rush to get quick results only originates accumulated disasters.

    The posts in question, which have been mentioned above are placed in the following boards;

    http://www.mrexcel.com/forum/showthr...78#post3195378

    http://www.ozgrid.com/forum/showthre...900#post615900
    _CYBERPATH_

  9. #9
    Registered User
    Join Date
    01-28-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to use SystemParametersInfo to Get SPI_SETWHEELSCROLLLINES

    Quote Originally Posted by JosephP View Post
    basically in a normal module (in other words not worksheet/workbook/class/userform):
    Please Login or Register  to view this content.
    Thanks JosephP for your reply, i have put the code in a new MODULE window, but it doesn't have no effect.
    I'm using Office 2010, in windows seven (NOT SP1).

    the only options a have found so far was this;

    Please Login or Register  to view this content.
    Anyway, thanks, i have delivered my work, now it's just only by mere curiosity ....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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