+ Reply to Thread
Results 1 to 6 of 6

Creating a new Excel instance

  1. #1
    Registered User
    Join Date
    09-09-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Creating a new Excel instance

    I have a spreadsheet that will retrieve real time data off Bloomberg Terminal. The only problem is that there are almost 10 spreadsheets running in Bloomberg Terminal and I don't want my spreadsheet to interfere with those spreadsheets. So is there anyway I can create a specific process/instance that only won't interfere with any other spreadsheets?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Creating a new Excel instance

    Hi, G4L,

    like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    09-09-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating a new Excel instance

    Sorry I am new to Excel but does newXL.Quit close the excel spreadsheet? I want this spreadsheet to be running 24/7.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Creating a new Excel instance

    Hi, G4L,

    that´s the whole process of setting up a new instance and closing it down. You´re correct, newXl.Quit would close down the instance and the next line destroy the object set to the instance. But the first lines of creating the new instance, making it appear on the screen could be used. Next I guess would be opening a workbook:

    Please Login or Register  to view this content.
    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    09-09-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Creating a new Excel instance

    sorry for the late reply...was on vacation

    anyways I'm not sure if I explained properly but I have a spreadsheet that will be open 24/7 that will be running a specific macro every 5 minutes. I will need to open other spreadsheets during the day and I want to make sure that the other spreadsheets that are opened will not be stuck or mess up any data on the aforementioned spreadsheet when the macro runs every 5 minutes.

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Creating a new Excel instance

    Hi, G4L,

    AFAIR Excel can open more than one instance which will work independently. What may be affected is the use of an existing personl.xls (depending on which instance was opened first should have access to that workbook). But placing these codes in an AddIn should work around the problem.

    Ciao,
    Holger

+ 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