+ Reply to Thread
Results 1 to 6 of 6

How to stop the screen scrolling all over the place

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Question How to stop the screen scrolling all over the place

    I have a code which adds a column and changes the colour of the cell, the font colour, the borders etc so when an end user adds a column it does it all for them.

    However, when I run the macro it all works fine but the screen scrolls all over the place because it follows what I DID when I recorded the macro.

    I went into the code and deleted the activescreen scroll (least I thought I did) but it still scrolls around.


    can anyone look at the code below and show me where in the code it makes the screen scroll?? can I stop it?

    p.s. I left the last piece of code to obvious make the screen scroll back to the top


    Please Login or Register  to view this content.
    Last edited by Muzza86; 07-30-2014 at 06:07 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to stop the screen scrolling all over the place

    You could simply add:
    Please Login or Register  to view this content.
    at the start of the code and:
    Please Login or Register  to view this content.
    at the end. It would be better to also rewrite the code to avoid all that selecting.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: How to stop the screen scrolling all over the place

    legend thanks

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to stop the screen scrolling all over the place

    It would be something like:
    Please Login or Register  to view this content.
    You may need to adjust some of the border code.

  5. #5
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: How to stop the screen scrolling all over the place

    na it worked fine. cheers

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to stop the screen scrolling all over the place

    I'm impressed you managed to test that new code within a minute.

+ 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] Screen Scrolling Macro (VBA) freezes
    By kencoburn in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-21-2012, 01:07 PM
  2. Controlled vba screen scrolling
    By buckhunt122 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2011, 01:56 AM
  3. How do I lock a screen to prevent scrolling?
    By raveepoojari in forum Excel General
    Replies: 5
    Last Post: 04-06-2009, 02:12 PM
  4. [SOLVED] How do I keep a text box on the screen when scrolling in excel?
    By Paulm in forum Excel General
    Replies: 4
    Last Post: 07-27-2006, 10:40 AM
  5. [SOLVED] How do I keep a text box on the screen when scrolling?
    By Paulm in forum Excel General
    Replies: 1
    Last Post: 07-27-2006, 08:40 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