+ Reply to Thread
Results 1 to 3 of 3

Disabling Scrolling

  1. #1
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Montclair, NJ
    MS-Off Ver
    Excel 365
    Posts
    236

    Disabling Scrolling

    Hey,

    I was looking around on different sites to see how to "disable"/control the scrolling abilities and i found this code

    Please Login or Register  to view this content.
    I used it once before and it worked perfectly. I had to edit my excel sheets, now that I'm done, i put this code back in the VBA module and it's not working

    I'm not sure if I'm putting the code in the module correctly. Could somebody please help me?

    Thank you for your time
    Bob
    Attached Files Attached Files
    Last edited by sighlent1; 03-04-2010 at 11:32 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Disabling Scrolling

    Good evening sighlent1
    Quote Originally Posted by sighlent1 View Post
    I'm not sure if I'm putting the code in the module correctly.
    That sounds like a likely cause. Which module have you put it in?
    It should be in the Sheet1 module, not a regular macro module.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Disabling Scrolling

    It's not working because you didn't install it anywhere, at least I couldn't find it in any of your sheet modules.

    I added it INTO the Sheet1 module, and changed the code to:
    Please Login or Register  to view this content.

    You can install this into any other sheet as is and it would work the same, and it must go INTO the sheet module.

    I also trimmed down your other macros, removed all the "selecting" and simply addressed the commands directly to the cells in question. For example:
    Please Login or Register  to view this content.
    You had separate CLEAR_FIELDS macros for 3 different sheets that all did the same thing. No need for that, so I made one macro and attached the button in each sheet to the same macro.

    Take a look.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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