Message 1 of 3
GetObject command
Not applicable
05-26-2000
11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to use the following command to retrieve the currently active
Excel workbook.
Set ExcelServer = GetObject(, "Excel.Application")
ExcelServer.WindowState = XlWindowState.xlMinimized
According to the help file: "If the pathname argument is omitted, GetObject
returns a currently active object of the specified type" I find that if I
have an instance of Excel running and I execute the command it returns an
empty excel window, but not the current workbook, which is what I want.
What am i missing?
Excel workbook.
Set ExcelServer = GetObject(, "Excel.Application")
ExcelServer.WindowState = XlWindowState.xlMinimized
According to the help file: "If the pathname argument is omitted, GetObject
returns a currently active object of the specified type" I find that if I
have an instance of Excel running and I execute the command it returns an
empty excel window, but not the current workbook, which is what I want.
What am i missing?