+ Reply to Thread
Results 1 to 6 of 6

Hiding Windows - Windows("Name.xls").Visible = False

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Hiding Windows - Windows("Name.xls").Visible = False

    I'm having trouble hiding some Excel windows.

    I'm using the following code to hide a window:

    Please Login or Register  to view this content.

    It keeps throwing "subscript out of range" errors at me and I can't figure out why.

    The filename is correct, so is the extension. I've used a MsgBox to tell me the caption of the window which also shows up the way I have typed it.

    I have a macro, in another workbook, which opens this file automatically, but I can't set the Visible property for the Window.#

    Ideas anyone?
    Last edited by AKK9; 09-15-2010 at 06:29 AM. Reason: Solved.
    .
    - AKK9 -

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Hiding Windows - Windows("Name.xls").Visible = False

    If you use

    Please Login or Register  to view this content.
    to load this workbook it's automatically hidden



  3. #3
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: Hiding Windows - Windows("Name.xls").Visible = False

    Ah, that's great.

    Is there anything I should know about updating links and what not while using this method, or is it just the same?

    I'm only referencing cells in formulae and it all seems to be working fine, but I'm just asking in case there are issues I could run into in the future.

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

    Re: Hiding Windows - Windows("Name.xls").Visible = False

    You could also use:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Hiding Windows - Windows("Name.xls").Visible = False

    Is there anything I should know about updating links and what not while using this method, or is it just the same?
    As far as I know it's the same (except the visibility of course).

  6. #6
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: Hiding Windows - Windows("Name.xls").Visible = False

    Ok thanks for the help. Problem Solved.

+ 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