+ Reply to Thread
Results 1 to 6 of 6

Freeze screen

  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Freeze screen

    Hey all,

    Simple question. How do I get excel to run the macro in the background?
    In my code:
    Please Login or Register  to view this content.
    I tried Application.ScreenUpdating = False, but without any results :/
    The macro shows my -sarcasm- wonderful -/sarcasm- way of programming.. But although i'm not a programmer, I love doing this.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Freeze screen

    You want to use events. Search the web for "excel events vba" and you will see there are lots of events available (on open, on close, before print, on update, etc.). Too much to cover in this forum, but plenty of web pages to get you started.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: Freeze screen

    I'm not sure that we are on the same page here.
    The macro does run (when a button is clicked).
    But it's running in two different files, it flashes those files right in my face. And I want to prevent that from happening (so screenupdating would come in mind, but that doesn't seem to work on more than one workbook.)

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Freeze screen

    Sorry I misunderstood your question (and then I took a break from this forum). So where is screenupdating 'failing'? Is it during the saves? It seems like it should work, but you are seeing otherwise, so maybe there is certain code where excel will still switch between files. I tried to write some test code which copied data from one workbook to another, and the screenupdating worked as expected.

  5. #5
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: Freeze screen

    No problem, the functions and macro's just made my file really slow. So I decided to change some things.
    Now it already works better, so the problem doesn't bother that much anymore.

    I will mark it as solved for now. When I can really test the file I might reopen it and try to explain things as clear as possible.

    Tnx

  6. #6
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Freeze screen

    There is no reason why ScreenUpdating would not carry over, it is the application that it applies to not the workbook...

    Make sure you put Application.ScreenUpdating = False in the beginning before you open the file, before on error and then at the very end put Application.ScreenUpdating = True before you end your sub and you should find that it runs and you don't see anything...
    -If you think you are done, Start over - ELeGault

+ 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. add a freeze screen with scroll
    By ammartino44 in forum Excel General
    Replies: 0
    Last Post: 07-31-2014, 07:12 PM
  2. Replies: 4
    Last Post: 01-23-2014, 07:05 AM
  3. Freeze Command Button On Screen?
    By DonG in forum Excel General
    Replies: 3
    Last Post: 10-27-2011, 07:02 PM
  4. Replies: 10
    Last Post: 04-19-2011, 09:27 PM
  5. [SOLVED] What is the difference between split screen and freeze?
    By ch in forum Excel General
    Replies: 1
    Last Post: 03-13-2006, 06:10 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