+ Reply to Thread
Results 1 to 6 of 6

Hide "Excel" when running VB

  1. #1
    Old Car
    Guest

    Hide "Excel" when running VB

    Is there a way to hide "Excel" when its VB code is running? Thanks.



  2. #2
    Jim Thomlinson
    Guest

    RE: Hide "Excel" when running VB

    application.visible = false

    Careful with this though. Make sure you have proper error handling. If your
    code crashes... Your excel will not come back...

    HTH

    "Old Car" wrote:

    > Is there a way to hide "Excel" when its VB code is running? Thanks.
    >
    >
    >


  3. #3
    Tom Ogilvy
    Guest

    Re: Hide "Excel" when running VB

    At the start of your code
    Application.Visible = False

    At the end of your code
    Application.Visible = True

    --
    Regards,
    Tom Ogilvy

    "Old Car" <nospam@nospam.com> wrote in message
    news:rAuce.73$k01.46@trnddc03...
    > Is there a way to hide "Excel" when its VB code is running? Thanks.
    >
    >




  4. #4
    Chip Pearson
    Guest

    Re: Hide "Excel" when running VB

    Do you mean to hide the entire application? If so, use

    Application.Visible = False
    ' your code here
    Application.Visible = True

    If you mean to simply hide the interim results of a VBA procedure
    while it is running, use

    Application.ScreenUpdating = False
    ' your code here
    Application.ScreenUpdating = True


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "Old Car" <nospam@nospam.com> wrote in message
    news:rAuce.73$k01.46@trnddc03...
    > Is there a way to hide "Excel" when its VB code is running?
    > Thanks.
    >
    >




  5. #5
    paul
    Guest

    Re: Hide "Excel" when running VB

    why dont you just minimize the excel window?
    --
    hope this helps
    Paul


    "Chip Pearson" wrote:

    > Do you mean to hide the entire application? If so, use
    >
    > Application.Visible = False
    > ' your code here
    > Application.Visible = True
    >
    > If you mean to simply hide the interim results of a VBA procedure
    > while it is running, use
    >
    > Application.ScreenUpdating = False
    > ' your code here
    > Application.ScreenUpdating = True
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    >
    > "Old Car" <nospam@nospam.com> wrote in message
    > news:rAuce.73$k01.46@trnddc03...
    > > Is there a way to hide "Excel" when its VB code is running?
    > > Thanks.
    > >
    > >

    >
    >
    >


  6. #6
    Robert Bruce
    Guest

    Re: Hide "Excel" when running VB

    Roedd <<paul>> wedi ysgrifennu:

    > why dont you just minimize the excel window?
    >


    There's a difference between <<hiding>> and <<crouching down really small
    and hoping that no one spots you>> ;-)

    --
    Rob

    http://www.asta51.dsl.pipex.com/webcam/

    This message is copyright Robert Bruce and intended
    for distribution only via NNTP.
    Dissemination via third party Web forums with the
    exception of Google Groups and Microsoft Communities
    is strictly prohibited and may result in legal action.



+ 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