+ Reply to Thread
Results 1 to 6 of 6

Hide workbook instantly on open

  1. #1
    Registered User
    Join Date
    07-25-2005
    Posts
    62

    Hide workbook instantly on open

    Is it possible to hide a workbook instantly when it opens?
    I currently have

    Set newBook = Workbooks.Open(fileName)
    Windows(fileName).Visible = False

    I also tried

    Set newBook = Workbooks.Open(fileName)
    With newBook
    .Windows(fileName).Visible = False
    End With

    In both cases the workbook flashes on the screen for an instant. That's clumsy. Is there a way to prevent that without saving the workbook as hidden?

    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: Hide workbook instantly on open

    Tried Application.ScreenUpdating = False before it?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "TommySzalapski"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is it possible to hide a workbook instantly when it opens?
    > I currently have
    >
    > Set newBook = Workbooks.Open(fileName)
    > Windows(fileName).Visible = False
    >
    > I also tried
    >
    > Set newBook = Workbooks.Open(fileName)
    > With newBook
    > Windows(fileName).Visible = False
    > End With
    >
    > In both cases the workbook flashes on the screen for an instant.
    > That's clumsy. Is there a way to prevent that without saving the
    > workbook as hidden?
    >
    > Thanks
    >
    >
    > --
    > TommySzalapski
    > ------------------------------------------------------------------------
    > TommySzalapski's Profile:

    http://www.excelforum.com/member.php...o&userid=25561
    > View this thread: http://www.excelforum.com/showthread...hreadid=391021
    >




  3. #3
    Tom Ogilvy
    Guest

    Re: Hide workbook instantly on open

    Application.ScreenUpdating = False
    Set newBook = Workbooks.Open(fileName)
    Windows(fileName).Visible = False
    Application.ScreenUpdating = True

    --
    Regards,
    Tom Ogilvy

    "TommySzalapski"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is it possible to hide a workbook instantly when it opens?
    > I currently have
    >
    > Set newBook = Workbooks.Open(fileName)
    > Windows(fileName).Visible = False
    >
    > I also tried
    >
    > Set newBook = Workbooks.Open(fileName)
    > With newBook
    > Windows(fileName).Visible = False
    > End With
    >
    > In both cases the workbook flashes on the screen for an instant.
    > That's clumsy. Is there a way to prevent that without saving the
    > workbook as hidden?
    >
    > Thanks
    >
    >
    > --
    > TommySzalapski
    > ------------------------------------------------------------------------
    > TommySzalapski's Profile:

    http://www.excelforum.com/member.php...o&userid=25561
    > View this thread: http://www.excelforum.com/showthread...hreadid=391021
    >




  4. #4
    Registered User
    Join Date
    07-25-2005
    Posts
    62
    Forgot about that one, thanks.
    By the way, you guys should register on the forum so you can view and post at times other than 5 minutes after the hour so you don't keep answering the same questions. Not that I mind two answers... but you could help people more quickly. Just a thought.

  5. #5
    Tom Ogilvy
    Guest

    Re: Hide workbook instantly on open

    The forum is a little pond. the big pond where most of the people asking
    and answering questions are is located at

    news://msnews.microsoft.com/microsof...el.programming

    the forum just interfaces with the big pond.

    --
    Regards,
    Tom Ogilvy


    "TommySzalapski"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > Forgot about that one, thanks.
    > By the way, you guys should register on the forum so you can view and
    > post at times other than 5 minutes after the hour so you don't keep
    > answering the same questions. Not that I mind two answers... but you
    > could help people more quickly. Just a thought.
    >
    >
    > --
    > TommySzalapski
    > ------------------------------------------------------------------------
    > TommySzalapski's Profile:

    http://www.excelforum.com/member.php...o&userid=25561
    > View this thread: http://www.excelforum.com/showthread...hreadid=391021
    >




  6. #6
    Bob Phillips
    Guest

    Re: Hide workbook instantly on open

    I don't think Tom or I will give up the NGs for a web forum. The NGs are
    leaner, quicker, and better (why else would all the forums send their stuff
    here).

    And I don't think too many people complain about the speed of their
    responses.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "TommySzalapski"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > Forgot about that one, thanks.
    > By the way, you guys should register on the forum so you can view and
    > post at times other than 5 minutes after the hour so you don't keep
    > answering the same questions. Not that I mind two answers... but you
    > could help people more quickly. Just a thought.
    >
    >
    > --
    > TommySzalapski
    > ------------------------------------------------------------------------
    > TommySzalapski's Profile:

    http://www.excelforum.com/member.php...o&userid=25561
    > View this thread: http://www.excelforum.com/showthread...hreadid=391021
    >




+ 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